Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 13th, 2010  |  syntax: Python  |  size: 0.95 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }