Django

Code

Changeset 896

Show
Ignore:
Timestamp:
10/16/05 23:59:06 (3 years ago)
Author:
adrian
Message:

Fixed some formatting issues in docs/settings.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/settings.txt

    r895 r896  
    3232 
    3333When 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_MODULE should be in Python path syntax, e.g. 
     34by using an environment variable, ``DJANGO_SETTINGS_MODULE``
     35 
     36The value of ``DJANGO_SETTINGS_MODULE`` should be in Python path syntax, e.g. 
    3737``"myproject.settings.main"``. Note that the settings module should be on the 
    3838Python `import search path`_. 
     
    8787Here's the algorithm Django uses in compiling settings: 
    8888 
    89     * Load settings from ``default_settings.py``. 
     89    * Load settings from ``global_settings.py``. 
    9090    * Load settings from the specified settings file, overriding the global 
    9191      settings as necessary. 
    9292 
     93Note that a settings file should *not* import from ``global_settings``, because 
     94that's redundant. 
     95 
    9396Using settings in Python code 
    9497============================= 
     
    102105        # Do something 
    103106 
    104 Note that your code should *not* import from either ``default_settings`` or 
     107Note that your code should *not* import from either ``global_settings`` or 
    105108your own settings file. ``django.conf.settings`` abstracts the concepts of 
    106109default settings and site-specific settings; it presents a single interface. 
     
    347350 
    348351Path 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 . 
     352to validate each ``XMLField`` in your models. 
     353See http://www.thaiopensource.com/relaxng/jing.html . 
    350354 
    351355LANGUAGE_CODE