Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> cursor = connection.cursor()
- Traceback (most recent call last):
- File "<console>", line 1, in <module>
- File "/usr/local/lib/python2.6/dist-packages/django/db/backends/dummy/base.py", line 15, in complain
- raise ImproperlyConfigured("You haven't set the database ENGINE setting yet.")
- ImproperlyConfigured: You haven't set the database ENGINE setting yet.
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': '/home/marijus/djcode/db/mydata.db',# Or path to database file if using sqlite3.
- 'USER': '', # Not used with sqlite3.
- 'PASSWORD': '', # Not used with sqlite3.
- 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement