I have a Django project which seemed to work pretty well with settings.py, which also imported a local_settings.py without problem.
I've now added the following lines at the end of the settings file :
try:
from extras import *
except ImportError, e:
print "import extras failed :: " + `e`
extras.py is a file of extra configuration information sitting in the same directory as settings.py and local_settings.py, however, I'm now getting :
import extras failed :: ImportError('Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.',)
This seems to be due to me trying to
from django.contrib.auth.models import User,UserManager
from django.db import models
in that extras.py file.
Anyone have any ideas?
cheers