when running
$ django-admin.py runserver
I get:
(in red letters)
Error: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.
in previous versions (python 2.5, django 1.2) I never had this problem.
Ive tried setting the setting module manually then it tells me to put it on sys.path. once I set the sys path in bash using the python interpreter I close it and it dissappears from the sys.path? Im using OSX 10.7’s Apache 2.2.19 and python 2.7.1 build right out of the box. Running out of ideas. Help!!
I actually figured it out. for anyone else that has become as forgetful as I, you have to pass those variable to the shell by adding python to the front of it.
without the python in front of it the shell doesn’t know where to send it.