Advertisement
Guest User

Untitled

a guest
Nov 13th, 2010
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.95 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement