Opened 17 years ago

Closed 17 years ago

#5255 closed (fixed)

DATABASE_ENGINE error when starting new site

Reported by: Hendrik van der Linde <vlipper@…> Owned by: Jacob
Component: Uncategorized Version: dev
Severity: 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

When I start a new site, and start the server, I get errors. I have not done any configuration, but I don't need much, because I don't want to use a database (as a workaround I am now using sqlite3). Latest svn revision (6001).

Below the command I ran and the errors.

python manage.py runserver
Validating models...
Unhandled exception in thread started by <function inner_run at 0x10e1f70>
Traceback (most recent call last):

File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/management/commands/runserver.py", line 40, in inner_run

self.validate()

File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/management/base.py", line 59, in validate

num_errors = get_validation_errors(s, app)

File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/management/validation.py", line 21, in get_validation_errors

from django.db import models, connection

File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/init.py", line 6, in ?

from django.db.models.query import Q

File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/query.py", line 568, in ?

if connection.features.uses_custom_queryset:

File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/backends/dummy/base.py", line 26, in getattr

complain()

File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/backends/dummy/base.py", line 13, in complain

raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet."

django.core.exceptions.ImproperlyConfigured: You haven't set the DATABASE_ENGINE setting yet.

Change History (1)

comment:1 by Adrian Holovaty, 17 years ago

Resolution: fixed
Status: newclosed

(In [6002]) Fixed #5255 -- It's now possible again to use Django without a database. This had temporarily gotten buggy after the django.core.management refactoring last week

Note: See TracTickets for help on using tickets.
Back to Top