Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-03 Thread Kann
Thanks all, that cleared up a lot of my confusions and gave me a really good lesson. Now I am facing a new problem and will post a new topic then. Kann On Jun 2, 2:41 pm, Kenneth Gonsalves wrote: > On Thu, 2011-06-02 at 05:29 -0700, Kann wrote: > > Thanks Oscar, I read the page already, but am s

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kenneth Gonsalves
On Thu, 2011-06-02 at 05:29 -0700, Kann wrote: > Thanks Oscar, I read the page already, but am still not totally > understood. The page said the value of DJANGO_SETTINGS_MODULE should > be "Python path syntax", e.g. mysite.settings. What exactly is > "Python path syntax"? Would it be ok if I just

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kirill Spitsin
On Thu, Jun 02, 2011 at 05:29:01AM -0700, Kann wrote: > Thanks Oscar, I read the page already, but am still not totally > understood. The page said the value of DJANGO_SETTINGS_MODULE should > be "Python path syntax", e.g. mysite.settings. What exactly is > "Python path syntax"? Would it be ok if

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kann
Thanks Oscar, I read the page already, but am still not totally understood. The page said the value of DJANGO_SETTINGS_MODULE should be "Python path syntax", e.g. mysite.settings. What exactly is "Python path syntax"? Would it be ok if I just provide the value as a file name? Perhaps, "new_setting

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Oscar Carballal
2011/6/2 Kann : > Yep, but what if I just want to load all configurations from the > entirely new file. What should be the proper value for me to give to > the DJANGO_SETTINGS_MODULE? Take a look to https://docs.djangoproject.com/en/dev/topics/settings/ You can load the new settings via "runserv

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kann
> You can import "setting_new.py" from "settings.py", that way you still > only need to stablish settings.py as the DJANGO_SETTINGS_MODULE. Yep, but what if I just want to load all configurations from the entirely new file. What should be the proper value for me to give to the DJANGO_SETTINGS_MO

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Oscar Carballal
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.

Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kann
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 "Pytho

Re: about DJANGO_SETTINGS_MODULE

2007-08-26 Thread Graham Dumpleton
On Aug 27, 11:53 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 8/26/07, z_axis <[EMAIL PROTECTED]> wrote: > > > File "d:\app\python\Lib\site-packages\django\db\__init__.py", line 7, in > > > le> > > if not settings.DATABASE_ENGINE: > > The lines above tell you what the problem is:

Re: about DJANGO_SETTINGS_MODULE

2007-08-26 Thread James Bennett
On 8/26/07, z_axis <[EMAIL PROTECTED]> wrote: > File "d:\app\python\Lib\site-packages\django\db\__init__.py", line 7, in > le> > if not settings.DATABASE_ENGINE: The lines above tell you what the problem is: Django stores data in a database, but you have not filled in the settings which t

about DJANGO_SETTINGS_MODULE

2007-08-26 Thread z_axis
hi, friends: I am a newbie of django. I want to learn it in python shell. f:\set DJANGO_SETTINGS_MODULE=f:\z\temp\blog\settings.py f:\python Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.