Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#18058 closed Bug (worksforme)

Problem with syncdb in Django 1.4 — at Version 1

Reported by: diegocepr@… Owned by: nobody
Component: Uncategorized Version: 1.4
Severity: Normal Keywords: startproject, tutorial
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Claude Paroz)

I am trying to do the tutorial with django 1.4 and I get an error doing 'python manage.py syncdb'. I am using the DATABASES as it is created and I've try to use sqlite3 and mysql backends. I tried it in windows and in unix. Rasult is always the same:

  raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
  django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.

But settings.py is:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'polls.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.
    }
}

However I have tried with previous version of Django and it works ok.

Change History (1)

comment:1 by Claude Paroz, 13 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

Please use preview next time to properly format the report.

My guess is that you are not placing the settings.py file in the right place. Please use support channels to get help before reporting a bug.
wiki:TicketClosingReasons/UseSupportChannels

Note: See TracTickets for help on using tickets.
Back to Top