Hi Im going through the Django tutorial and after saving and running urls.py it says DJANGO_SETTINGS_MODULE is undefined in the urls.py console.
when I go to my project homepage it gives error messages too
here is the full message:
Traceback (most recent call last): File "/home/slenkar/hurling/urls.py", line 4, in <module> from django.contrib import admin File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/init.py", line 3, in <module> from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/helpers.py", line 3, in <module> from django.contrib.admin.util import (flatten_fieldsets, lookup_field, File "/usr/local/lib/python2.7/site-packages/django/contrib/admin/util.py", line 1, in <module> from django.db import models File "/usr/local/lib/python2.7/site-packages/django/db/init.py", line 14, in <module> if not settings.DATABASES: File "/usr/local/lib/python2.7/site-packages/django/utils/functional.py", line 276, in getattr self._setup() File "/usr/local/lib/python2.7/site-packages/django/conf/init.py", line 40, in _setup raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.