Opened 18 years ago

Closed 18 years ago

#3242 closed defect (worksforme)

Configuring the template system in standalone mode

Reported by: Jeff Bauer <jbauer@…> Owned by: Jacob
Component: Documentation Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The Configuring the template system in standalone mode section in
http://www.djangoproject.com/documentation/templates_python
states:

"... before you call any of the templating functions, call django.conf.settings.configure() with any settings you wish to specify."

But there is no django.conf.settings module and django.conf.global_settings has no configure() function.

Change History (1)

comment:1 by James Bennett, 18 years ago

Resolution: worksforme
Status: newclosed

There is such a thing as django.conf.settings; in the file django/conf/__init__.py a LazySettings object is instantiated and bound to the name settings. That object has a configure method which works as advertised in the docs.

Note: See TracTickets for help on using tickets.
Back to Top