Changes between Initial Version and Version 1 of Ticket #12231


Ignore:
Timestamp:
11/16/2009 09:46:31 PM (6 years ago)
Author:
Alex
Comment:

Please use preview.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12231

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • Ticket #12231 – Description

    initial v1  
    11If by example your django is in an egg like
    2 
     2{{{
    33my.site.project
    4 
     4}}}
    55If you call the django core execution manager with:
    6 
     6{{{
    77mod = __import__('my.site.project')
    88django.core.management.execute_manager(mod)
    9 
     9}}}
    1010Your project will not be found cause the django core is declaring the main DJANGO_SETTINGS_MODULE with:
    1111
    1212django.core.management.__init__:
     13{{{
    1314...
    1415project_directory, settings_filename = os.path.split(p)
     
    1920os.environ['DJANGO_SETTINGS_MODULE = '%s.%s' % (project_name, settings_name)
    2021...
    21 
     22}}}
    2223The project_name variable represent only the first level of the project egg. It could not work with a multilevel package and we now have to use the variable 'original_settings_path' which is just optional.
    2324
Back to Top