Weirdly I'm getting this error when I 'am' running manage.py. I'm doing something slightly weird, in that I'm using Popen from inside another python process to run python manage.py. Still, it worked a few weeks back and just started happening. Any tips on where to look to debug it?
On Thursday, April 25, 2013 3:22:16 PM UTC+1, Tom Evans wrote: > > On Thu, Apr 25, 2013 at 2:56 PM, Iftikhar Ali > <[email protected]<javascript:>> > wrote: > > when i am running the project it is running perfectly fine but when i am > > trying to open django-admin.py shell the error: > > Don;t use django-admin to launch the shell, only use django-admin to > create projects¹. Once you have created your project using > django-admin.py, use the manage.py script it created inside your > project to interact in any with it - creating apps, running syncdb, > accessing the project shell. > > See the docs here: > > > https://docs.djangoproject.com/en/1.5/ref/django-admin/#django-admin-py-and-manage-py > > > The reason you want to use manage.py over django-admin,py is that > manage.py can usually find your settings automatically - it > automatically sets the environment variable DJANGO_SETTINGS_MODULE to > the correct value. > > Cheers > > Tom > > ¹ Or standalone apps. For apps within the project, you use manage.py > startapp, like everything else in the project. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2320a9da-8264-49d2-af2f-0b6abba39bfd%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

