Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #5255 -- It's now possible again to use Django without a databa…

…se. This had temporarily gotten buggy after the django.core.management refactoring last week

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6d387d3d1bc481b47f6be4e4294bb87cc8b75c9f 1 parent de64e0d
Adrian Holovaty adrianholovaty authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 django/db/backends/dummy/base.py
10 django/db/backends/dummy/base.py
View
@@ -8,6 +8,7 @@
"""
from django.core.exceptions import ImproperlyConfigured
+from django.db.backends import BaseDatabaseFeatures, BaseDatabaseOperations
def complain(*args, **kwargs):
raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet."
@@ -21,13 +22,12 @@ class DatabaseError(Exception):
class IntegrityError(DatabaseError):
pass
-class ComplainOnGetattr(object):
- def __getattr__(self, *args, **kwargs):
- complain()
+class DatabaseOperations(BaseDatabaseOperations):
+ quote_name = complain
class DatabaseWrapper(object):
- features = ComplainOnGetattr()
- ops = ComplainOnGetattr()
+ features = BaseDatabaseFeatures()
+ ops = DatabaseOperations()
operators = {}
cursor = complain
_commit = complain
Please sign in to comment.
Something went wrong with that request. Please try again.