Django

Code

Ticket #5255 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

DATABASE_ENGINE error when starting new site

Reported by: Hendrik van der Linde <vlipper@gmail.com> Assigned to: jacob
Milestone: Component: Uncategorized
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation:
Needs tests: Patch needs improvement:

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.

Attachments

Change History

08/25/07 13:27:57 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(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


Add/Change #5255 (DATABASE_ENGINE error when starting new site)




Change Properties
Action