Opened 5 years ago

Closed 5 years ago

#16544 closed Bug (invalid)

Django tells me I haven't set the database ENGINE, even though I have

Reported by: dloewenherz 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


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)

traceback.txt (1.5 KB) - added by dloewenherz 5 years ago.

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by dloewenherz


comment:1 Changed 5 years ago by dloewenherz

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to 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.
Back to Top