Restructure cookbook directories and use Grappelli for the admin interface.
authorW. Trevor King <wking@drexel.edu>
Fri, 5 Aug 2011 16:11:46 +0000 (12:11 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 5 Aug 2011 16:19:48 +0000 (12:19 -0400)
commit54ef55b5be084b7039fcc40ef4d09f2ff7424aac
treef64d9de0c068ac4a868922f885c49a8b19573cb9
parentbfc63a763ae32e0bf25c7087a85fb329ab3f1630
Restructure cookbook directories and use Grappelli for the admin interface.

Moving the static and template directories into the python modules
makes it easy for Django to find them using its built-in finders:
  django.contrib.staticfiles.finders.AppDirectoriesFinder
  django.template.loaders.app_directories.Loader

This means that people using cookbook will not need to shift these
files around on their own, or adjust their settings.py file to do more
than add 'cookbook' to their INSTALLED_APPS.

Grappelli is makes it very easy to add drag-and-drop sorting for
Ingredient and IngredientBlock fields, which I also put in in this
commit.
13 files changed:
README
cookbook/admin.py
cookbook/models.py
cookbook/static/cookbook/cookbook.ico [moved from example/data/static/cookbook.ico with 100% similarity]
cookbook/static/cookbook/style.css [moved from example/data/static/style.css with 100% similarity]
cookbook/templates/admin/edit_inline/tabular.html [moved from example/data/template/admin/edit_inline/tabular.html with 100% similarity]
cookbook/templates/cookbook/base.html [moved from example/data/template/cookbook/base.html with 100% similarity]
cookbook/templates/cookbook/recipe.html [moved from example/data/template/cookbook/recipe.html with 100% similarity]
cookbook/templates/cookbook/recipes.html [moved from example/data/template/cookbook/recipes.html with 100% similarity]
cookbook/templates/cookbook/tags.html [moved from example/data/template/cookbook/tags.html with 100% similarity]
cookbook/urls.py
example/data/static/.gitignore [new file with mode: 0644]
example/settings.py