SHARE
TWEET

Untitled

a guest Nov 13th, 2010 53 Never
  1. >>> cursor = connection.cursor()
  2. Traceback (most recent call last):
  3.   File "<console>", line 1, in <module>
  4.   File "/usr/local/lib/python2.6/dist-packages/django/db/backends/dummy/base.py", line 15, in complain
  5.     raise ImproperlyConfigured("You haven't set the database ENGINE setting yet.")
  6. ImproperlyConfigured: You haven't set the database ENGINE setting yet.
  7.  
  8. DATABASES = {
  9.    'default': {
  10.        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  11.        'NAME': '/home/marijus/djcode/db/mydata.db',# Or path to database file if using sqlite3.
  12.        'USER': '',                      # Not used with sqlite3.
  13.        'PASSWORD': '',                  # Not used with sqlite3.
  14.        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
  15.        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
  16.    }
  17. }
RAW Paste Data
Top