This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
devel:django_introduction [2008/09/24 09:25] jodal It is now recommended to keep the nav.django.urls.* modules in the various subsystems instead of in lib-python. |
devel:django_introduction [2009/06/16 14:24] jorabra Update path |
||
---|---|---|---|
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 ''nav.django'' Python package, which is located in ''subsystem/lib-python/src/nav/django''. | + | 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 ''nav.django'' Python package, which is located in ''subsystem/lib-python/nav/django''. |
==== Settings ==== | ==== Settings ==== | ||
Line 87: | Line 87: | ||
Finally, the folder ''media/'' contains all static media which is needed by the app. Typically, this should be ''media/style/'' for CSS-files, ''media/js/'' for JavaScript, and ''media/images/'' for images. Files should typically be named after the app to avoid name collisions with other apps when installed, i.e. ''media/style/ipdevinfo.css'' and subfolders like ''media/images/ipdevinfo/''. | Finally, the folder ''media/'' contains all static media which is needed by the app. Typically, this should be ''media/style/'' for CSS-files, ''media/js/'' for JavaScript, and ''media/images/'' for images. Files should typically be named after the app to avoid name collisions with other apps when installed, i.e. ''media/style/ipdevinfo.css'' and subfolders like ''media/images/ipdevinfo/''. | ||
+ | |||
+ | Configuration files should be in the ''config/'' folder in the source tree, and installed into ''$NAVHOME/etc/appname/''. | ||
How to install everything mentioned here is defined in ''Makefile.in''. | How to install everything mentioned here is defined in ''Makefile.in''. |