Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8707229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:49:08+00:00 2026-06-13T03:49:08+00:00

I am going through the Django Book and got really stuck when trying to

  • 0

I am going through the Django Book and got really stuck when trying to execute the ‘cursor = connection.cursor()’ command to test the database configuration. I am a complete noob but I did spend several hours trying to identify the problem – to no avail. (sorry for the messy display of terminal output below – SO doesn’t let new users post images).


Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.db import connection
>>> cursor = connection.cursor()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/dummy/base.py", line 15, in complain
    raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
>>> from django.conf import settings
>>> settings.DATABASES
{'default': {'ENGINE': 'django.db.backends.dummy', 'TEST_MIRROR': None, 'NAME': '', 'TEST_CHARSET': None, 'TIME_ZONE': 'UTC', 'TEST_COLLATION': None, 'OPTIONS': {}, 'HOST': '', 'USER': '', 'TEST_NAME': None, 'PASSWORD': '', 'PORT': ''}}
>>> 

I did the settings.DATABASE check and the result comes out different from what I’ve saved in my settings.py file – is that the source of the porblem?

I saw that there are several similar questions about this issue here – but none of them resolved the problem for me.

Here’s my database set up from settings.py:

***
ADMINS = (
    # ('Your Name', 'your_email@example.com'),
)

MANAGERS = ADMINS

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'mydb',                      # Or path to database file if using sqlite3.
        'USER': 'paul',                      # 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.
    }
}

***

Thank you for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:49:09+00:00Added an answer on June 13, 2026 at 3:49 am

    I suspect it might be because the book is outdated (Django evolves fairly quickly and many backwards-incompatible changes have taken place since the book was written). See note on the front page of The Django Book:

    This book was originally published by Apress in 2009, and covered
    Django 1.0. Since then, it’s languished. We’re working on getting the
    book updated to cover Django 1.4, 1.5, and beyond.

    So it’s probably not your fault that this error is showing up! 🙂

    If you haven’t already done so, I recommend you go through the official Django tutorial (link available via the Django home page) and read through the docs. The tutorial and docs are kept quite up to date. However, just be careful you’re looking at the documentation for the Django version you have installed (the documentation may vary for each Django version released). You can switch documentation versions via the switcher on the bottom-right-hand-side of the website (view screenshot).

    The Django Book still has value though as it reveals a lot about the philosophy behind Django — but just be aware the code provided might not work with the current Django version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im going through the beginning Django ecommerce book, and I am stuck on trying
I'm going through a Django book and I seem to be stuck. The code
I'm going through the Django book and I'm currently on chapter 10 . I'm
I'm new to Django and was going through the Django Book for the first
I'm going through the Django Book. I'm in the middle of Chapter 4. I
I'm going through the django tutorials and I was wondering what happens when you
I am going through the docs of http://django-blog-zinnia.com/documentation/getting-started/install/ and when I syncdb I get
So I am new to Django and I am going through the tutorials. I
So basically, I've got a rather large Django project going. It's a private web
I am new to Django, i was going through this Django site for building

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.