are u sure u are running the command from the root of your project where the folder "website" and file manage.py is ?
try to cd to your project root, then run
python manage.py runserver
On Oct 2, 2017 6:51 AM, "harsh sharma" <harshsharma199622@gmail.com> wrote:
-- i am getting this error whenever i m trying to run django-admin runserver--django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must eit her define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.my wsgi fileimport os
from django.conf import settings
from django.core.wsgi import get_wsgi_application
settings.configure(DEBUG=True)
os.environ.setdefault("DJANGO_SETTINGS_MODULE" , "website.settings")
application = get_wsgi_application()
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+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/568cdb67- .2a6f-4e3b-9ba8-842d0c721e7a% 40googlegroups.com
For more options, visit https://groups.google.com/d/optout .
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMGzuy-fCGft6__LEfU1JaieorsLCJZE---PRNQkCVBKBRdUBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment