Opened 13 years ago
Closed 13 years ago
#16544 closed Bug (invalid)
Django tells me I haven't set the database ENGINE, even though I have
Reported by: | Dan Loewenherz | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.3 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm using GeoDjango, specifically the spatialite database engine (django.contrib.gis.db.backends.spatialite). When I start the server, and visit a page, I get the following error:
ImproperlyConfigured at /user/logout You haven't set the database ENGINE setting yet.
However, when entering the shell.
>>> from django.conf import settings >>> settings.DATABASES {'default': {'ENGINE': 'django.contrib.gis.db.backends.spatialite', 'HOST': '', 'NAME': 'local.db', 'OPTIONS': {}, 'PASSWORD': '', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'America/Los_Angeles', 'USER': ''}}
Attachments (1)
Change History (2)
by , 13 years ago
Attachment: | traceback.txt added |
---|
comment:1 by , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is invalid. I had forgotten to set up an /etc/hosts listing for my site.
Note:
See TracTickets
for help on using tickets.
Traceback