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 file
import 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 [email protected].
To post to this group, send email to [email protected].
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.