Code

Opened 3 years ago

Closed 3 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

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)

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

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by dloewenherz

Traceback

comment:1 Changed 3 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.