On Thu, Apr 25, 2013 at 2:56 PM, Iftikhar Ali <[email protected]> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to