#18058 closed Bug (worksforme)
Problem with syncdb in Django 1.4
Reported by: | 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 )
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 (4)
comment:1 by , 13 years ago
Description: | modified (diff) |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:2 by , 12 years ago
Keywords: | startproject tutorial added |
---|---|
Resolution: | invalid |
Status: | closed → reopened |
Type: | Uncategorized → Bug |
This is caused by the "django-admin.py startproject mysite" in the tutorial. For some reason it creates multiple settings.py and urls.py files
comment:3 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Please follow the pointers given in:
wiki:TicketClosingReasons/UseSupportChannels
Post some more details like if you had a previous installation of Django before you instaled 1.4 and which method of installation did you use.
comment:4 by , 12 years ago
Your install of Django is probably messed up — you must have installed 1.4 over 1.3 without removing it first. There's roughly a dozen duplicate tickets about this problem.
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