Changeset 896
- Timestamp:
- 10/16/05 23:59:06 (3 years ago)
- Files:
-
- django/trunk/docs/settings.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/settings.txt
r895 r896 32 32 33 33 When you use Django, you have to tell it which settings you're using. Do this 34 by using an environment variable, DJANGO_SETTINGS_MODULE.35 36 The value of DJANGO_SETTINGS_MODULEshould be in Python path syntax, e.g.34 by using an environment variable, ``DJANGO_SETTINGS_MODULE``. 35 36 The value of ``DJANGO_SETTINGS_MODULE`` should be in Python path syntax, e.g. 37 37 ``"myproject.settings.main"``. Note that the settings module should be on the 38 38 Python `import search path`_. … … 87 87 Here's the algorithm Django uses in compiling settings: 88 88 89 * Load settings from `` default_settings.py``.89 * Load settings from ``global_settings.py``. 90 90 * Load settings from the specified settings file, overriding the global 91 91 settings as necessary. 92 92 93 Note that a settings file should *not* import from ``global_settings``, because 94 that's redundant. 95 93 96 Using settings in Python code 94 97 ============================= … … 102 105 # Do something 103 106 104 Note that your code should *not* import from either `` default_settings`` or107 Note that your code should *not* import from either ``global_settings`` or 105 108 your own settings file. ``django.conf.settings`` abstracts the concepts of 106 109 default settings and site-specific settings; it presents a single interface. … … 347 350 348 351 Path to the "Jing" executable. Jing is a RELAX NG validator, and Django uses it 349 to validate ``XMLField``s. See http://www.thaiopensource.com/relaxng/jing.html . 352 to validate each ``XMLField`` in your models. 353 See http://www.thaiopensource.com/relaxng/jing.html . 350 354 351 355 LANGUAGE_CODE
