Al 07/04/13 20:35, En/na Johannes ha escrit:
In order to diagnose what the problem really is I'd suggest to add a
print to some of your views:

databases {'default': {'ENGINE': 'django.db.backends.sqlite3',
'TEST_MIRROR': None, 'NAME': ':memory:', 'TEST_CHARSET': None,
'TIME_ZONE': 'UTC', 'TEST_COLLATION': None, 'OPTIONS': {}, 'HOST': '',
'USER': '', 'TEST_NAME': None, 'PASSWORD': '', 'PORT': ''}

and in the shell just:

the shell output:
databases {'default': {'ENGINE': 'django.db.backends.sqlite3',
'TEST_MIRROR': None, 'NAME': 'nacc.db', 'TEST_CHARSET': None,
'TIME_ZONE': 'UTC', 'TEST_COLLATION': None, 'OPTIONS': {}, 'HOST': '',
'USER': '', 'TEST_NAME': None, 'PASSWORD': '', 'PORT': ''}}


so the name does not match. Do I miss something to import?

So it looks like django is using two different settings.py (or the same settings.py which has some kind of conditional configuration).

Again, in any view and in the django shell, compare the output:

import os
settings = os.environ["DJANGO_SETTINGS_MODULE"]
module = __import__(settings)
print settings, module.settings.__file__

Hopefully this will give you some clue.



HTH

--
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to