User Tools

Site Tools


devel:django_introduction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
devel:django_introduction [2008/08/28 10:50]
morten fix typos
devel:django_introduction [2008/08/29 09:10]
jodal Clearify a bit.
Line 24: Line 24:
 === nav.django.urls.urlbuilder === === nav.django.urls.urlbuilder ===
  
-There is one special submodule named ''​nav.django.urls.urlbuilder''​. This is simply a Django replacement for the archaic ''​nav.web.urlbuilder''​. It is used by Django apps to link to non-Django apps, like the report subsystem, through the use of the ''​url''​ template tag or the ''​reverse()''​ function, instead of using the archaic ''​nav.web.urlbuilder''​. From your code's point of view, the URL configurations in ''​nav.django.urls.urlbuilder''​ is used as any other URL configuration in NAV.+There is one special submodule named ''​nav.django.urls.urlbuilder''​. This is simply a Django replacement for the archaic ''​nav.web.urlbuilder''​. It is used by Django apps to link to non-Django apps, like the report subsystem, through the use of the ''​url''​ template tag or the ''​reverse()''​ function, instead of using the archaic ''​nav.web.urlbuilder''​. From your code's point of view, the URL configurations in ''​nav.django.urls.urlbuilder''​ is used as any other Django ​URL configuration in NAV.
  
 ==== Shortcuts ==== ==== Shortcuts ====
Line 34: Line 34:
 ==== Context processors ==== ==== Context processors ====
  
-At the time of writing, ''​nav.django.context_processors''​ only contains one context ​processors: ''​debug''​. If Django is run in debug mode, this context ​processors ​appends a ''​sql_queries''​ variable to the context of all templates, containing all SQL queries executed to generate the current page. This is useful for optimizing the use of the Django ORM.+At the time of writing, ''​nav.django.context_processors''​ only contains one context ​processor: ''​debug''​. If Django is run in debug mode, this context ​processor ​appends a ''​sql_queries''​ variable to the context of all templates, containing all SQL queries executed to generate the current page. This is useful for optimizing the use of the Django ORM.
  
  
devel/django_introduction.txt ยท Last modified: 2010/01/13 11:30 by eide