devel:django_introduction
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devel:django_introduction [2008/09/25 11:42] – Fix typo. jodal | devel:django_introduction [2010/01/13 11:30] (current) – Add link to django_template blueprint eide | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== nav.django package ===== | ===== nav.django package ===== | ||
| - | As NAV has not used Django from the very beginning, NAV does not strictly follow the Django convention of multiple apps with their own models, views, etc. To plug NAV into the Django framework some glue is needed. This glue and other common Django-related code is located in the '' | + | As NAV has not used Django from the very beginning, NAV does not strictly follow the Django convention of multiple apps with their own models, views, etc. To plug NAV into the Django framework some glue is needed. This glue and other common Django-related code is located in the '' |
| ==== Settings ==== | ==== Settings ==== | ||
| Line 18: | Line 18: | ||
| ==== URL configuration ==== | ==== URL configuration ==== | ||
| - | In '' | + | The root URL configuration for all Django-related applications |
| When creating a new Django app, create a new submodule for your app in the '' | When creating a new Django app, create a new submodule for your app in the '' | ||
| Line 126: | Line 126: | ||
| As more parts of NAV are (re)implemented in Django, one should look into replacing the wrapping of Django templates in Cheetah templates with pure Django templates throughout the stack. Even if this may require maintenance of base templates in both Cheetah and Django for quite some time, it would result in much more flexibility with regard to page titles, bread crumb paths, etc. when using Django templates. | As more parts of NAV are (re)implemented in Django, one should look into replacing the wrapping of Django templates in Cheetah templates with pure Django templates throughout the stack. Even if this may require maintenance of base templates in both Cheetah and Django for quite some time, it would result in much more flexibility with regard to page titles, bread crumb paths, etc. when using Django templates. | ||
| + | |||
| + | Proposal in [[devel: | ||
| ==== Unit testing ==== | ==== Unit testing ==== | ||
devel/django_introduction.1222342965.txt.gz · Last modified: by jodal
