This is an old revision of the document!
Table of Contents
Introduction to using Django with NAV
Since the release of 3.4.0 parts of NAV have been using the Python web framework Django for some subsystems/apps, starting with the new IP Device Info app.
TODO: Intro to creating an NAV app with Django following the same sequence as the Django tutorial.
ETA: A first draft published Friday June 6, 2008
Creating a new application
TODO: File structure, etc.
Models
TODO
DB API
TODO
URL configuration
TODO
Views
TODO: Custom render_to_response(), etc.
Templates
TODO
Future enhancements
TODO
Sessions
NAV uses sessions for keeping track of logged in users. Currently, we are not using django.contrib.sessions, but are still using plain old mod_python sessions. The easiest way to get hold of the mod_python session in views is to use request._req.session, where request._req is the traditional mod_python request object.
