Which settings.py file are you modifying? I had this problem at first too
when I didn't read about Django's changes from 1.3 to 1.4. Here's an
excerpt from
https://docs.djangoproject.com/en/1.4/releases/1.4/#updated-default-project-layout-and-manage-py
 :

Django 1.4 ships with an updated default project layout and manage.py file
> for the 
> startproject<https://docs.djangoproject.com/en/1.4/ref/django-admin/#django-admin-startproject>
>  management
> command. These fix some issues with the previous manage.py handling of
> Python import paths that caused double imports, trouble moving from
> development to deployment, and other difficult-to-debug path issues.



manage.py
mysite/
    __init__.py
    settings.py
    urls.py
    myapp/
        __init__.py
        models.py

So basically, now there's a directory inside the project directory with the
same name:

$ django-admin.py startproject example

$ ls
> example/    __init__.py    manage.py    settings.py    urls.py
> $ ls example/
> __init__.py    *settings.py*    urls.py    views.py    wsgi.py


 The correct settings.py file you should use is NOT the one in the main
project directory, it's the one INSIDE the directory that's created inside
the project directory (the one I bolded). That's one major thing that's
changed with this version of Django. The outer "settings.py" and "urls.py"
shouldn't even exist, but for some reason they're being created anyway.


--
Joey "JoeLinux" Espinosa*
*
<http://joelinux117.blogspot.com>
<http://twitter.com/therealjoelinux><http://about.me/joelinux>



On Wed, Apr 4, 2012 at 1:15 PM, maxim <[email protected]> wrote:

> Yes
>
>
> On Wednesday, 4 April 2012 13:12:27 UTC-4, JoeLinux wrote:
>>
>> Are you using Django 1.4?
>> --
>> Joey "JoeLinux" Espinosa*
>> *
>>  <http://joelinux117.blogspot.com> 
>> <http://twitter.com/therealjoelinux><http://about.me/joelinux>
>>
>>
>>
>> On Wed, Apr 4, 2012 at 12:51 PM, maxim <[email protected]> wrote:
>>
>>> I can't get the tutorial working for me. When I try to run the command:
>>> python manage.py syncdb
>>>
>>> I get this error:
>>> Traceback (most recent call last):
>>>   File "manage.py", line 10, in <module>
>>>     execute_from_command_line(sys.**argv)
>>>   File 
>>> "/usr/lib/python2.7/site-**packages/django/core/**management/__init__.py",
>>> line 443, in execute_from_command_line
>>>     utility.execute()
>>>   File 
>>> "/usr/lib/python2.7/site-**packages/django/core/**management/__init__.py",
>>> line 382, in execute
>>>     self.fetch_command(subcommand)**.run_from_argv(self.argv)
>>>   File 
>>> "/usr/lib/python2.7/site-**packages/django/core/**management/base.py",
>>> line 196, in run_from_argv
>>>     self.execute(*args, **options.__dict__)
>>>   File 
>>> "/usr/lib/python2.7/site-**packages/django/core/**management/base.py",
>>> line 232, in execute
>>>     output = self.handle(*args, **options)
>>>   File 
>>> "/usr/lib/python2.7/site-**packages/django/core/**management/base.py",
>>> line 371, in handle
>>>     return self.handle_noargs(**options)
>>>    File "/usr/lib/python2.7/site-**packages/django/core/**
>>> management/commands/syncdb.py"**, line 57, in handle_noargs
>>>     cursor = connection.cursor()
>>>   File 
>>> "/usr/lib/python2.7/site-**packages/django/db/backends/**dummy/base.py",
>>> line 15, in complain
>>>     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.
>>>
>>> My settings file has this for databases:
>>> DATABASES = {
>>>     'default': {
>>>         'ENGINE': 'django.db.backends.sqlite3', # Add
>>> 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
>>>         'NAME': '/home/maxim/mysite/mysite.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.
>>>     }
>>> }
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To view this discussion on the web visit https://groups.google.com/d/**
>>> msg/django-users/-/**PPPfCQEQOKEJ<https://groups.google.com/d/msg/django-users/-/PPPfCQEQOKEJ>
>>> .
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com <django-users%[email protected]>.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> .
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/3ZDAMJucaLIJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to