You can import "setting_new.py" from "settings.py", that way you still
only need to stablish settings.py as the DJANGO_SETTINGS_MODULE.

It's strange though, the development server of django (python
manage.py runserver) should import automatically the settings module
and add it to the python path.

To know more about the python PATH take a look to the "sys" module in
the python documentation[1] exactrly the method "sys.path" :)

[1] http://docs.python.org/library/sys.html

2011/6/2 Kann <vearas...@gmail.com>:
> Dear all,
>
> In order to run django on the server, I need to specify the file
> containing all the configuration and export it as a system variable
> called "DJANGO_SETTINGS_MODULE". Also, the documentation on django
> project website also stated that the value of DJANGO_SETTINGS_MODULE
> should be in "Python path syntax". I am just Python newbie and don't
> really know what format the Python path syntax should be. Here is my
> case:
>
> The default setting file is "settings.py"; so, now, my
> DJANGO_SETTINGS_MODULE is configured as "settings"
>
> However, if I want to create a new additional setting file such as
> "setting_new.py", should the DJANGO_SETTINGS_MODULE be configured as
> "setting_new.settings?
>
> Kann
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to