Re: Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-15 Thread Shawn Milochik
The normal way to do it is with manage.py. The whole point of the script is to set up your environment so that Django can run your project. Shawn On Jan 15, 2011, at 12:40 PM, Chen Xu wrote: > py manage.py runserver works fine, but I kinda want to make django-admin.py > runserver work too.

Re: Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-15 Thread Chen Xu
py manage.py runserver works fine, but I kinda want to make django-admin.py runserver work too. Could anyone help? Thanks On Sat, Jan 15, 2011 at 3:22 AM, Praveen Krishna R < rpraveenkris...@gmail.com> wrote: > *try * > *manage.py runserver > * > On Sat, Jan 15, 2011 at 10:58 AM, Chen Xu wrot

Re: Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-15 Thread Praveen Krishna R
*try * *manage.py runserver * On Sat, Jan 15, 2011 at 10:58 AM, Chen Xu wrote: > Hi, Django developers: > I am very new here, trying to set up my Django > I have a project called 'mysite' > when I run: > $ django-admin.py runserver > > the terminal gives: > Error: Settings cannot be imported, bec

Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-14 Thread Chen Xu
Hi, Django developers: I am very new here, trying to set up my Django I have a project called 'mysite' when I run: $ django-admin.py runserver the terminal gives: Error: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined then I tried this: $ export DJANG