Reintroduce the URL pattern for exercises without slug field
Fix formatting errors checked with new version of pep8
Update category test

The cached list for the mobile search doesn't change when editing or
adding categories
Use templates to render the content of generated emails