How to disable application / project?

29 views
Skip to first unread message

Daniel Grace

unread,
Aug 14, 2014, 10:38:36 AM8/14/14
to django...@googlegroups.com
I have two projects "djangotest" (from the django tutorial) and "cresta".
When I start the server with the "runserver" command in the cresta directory and go to
... I see "Polls Tutorial".  I can't login with any users from the cresta database.
How do I disable the Polls tutorial and just use the cresta project and its applications?
Why is "Polls Tutorial" even appearing when I am running the server through the cresta directory?

Thanks


Mike Dewhirst

unread,
Aug 14, 2014, 10:53:47 AM8/14/14
to django...@googlegroups.com
Your environment might have settled on the polls settings.py. Django
doesn't know which project/application to launch except through
whichever settings.py file it loads.

Are you using virtualev? If not it might be a good idea. Solves all such
problems if you set it up as per the instructions.

>
> Thanks
>
>
> --
> 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 django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> 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/cb8f6bc1-eb3d-41b6-a2b0-d7792e108eae%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/cb8f6bc1-eb3d-41b6-a2b0-d7792e108eae%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Collin Anderson

unread,
Aug 14, 2014, 2:25:32 PM8/14/14
to django...@googlegroups.com
Do you have DJANGO_SETTINGS_MODULE="djangotest.settings" in your environment?

in manage.py you could change the os.environ.setdefault() line to:
os.environ['DJANGO_SETTINGS_MODULE'] = 'cresta.settings'
Reply all
Reply to author
Forward
0 new messages