It might be that django is not accessing the settings.py file you think it uses.
Try explicitly point django to your settings file by using –settings
./manage.py --settings=nameofproject.settings runserver/syncdb
If this works then, you’ll have to figure out why django is importing the wrong settings file.
Have you upgraded from 1.3 to 1.4 by accident ?