Re: settings.DATABASES is improperly configured

81 views
Skip to first unread message

Babatunde Akinyanmi

unread,
Nov 13, 2012, 11:31:01 AM11/13/12
to django...@googlegroups.com
Hi Yacov,
Why do you think python is importing another settings.py??

On 11/13/12, Yacov Schondorf <yacov.s...@gmail.com> wrote:
> I am doing the Django tutorial. When I execute the command "python
> manage.py syncdb", I get the following error:
> settings.DATABASES is improperly configured. Please supply the ENGINE
> value. Check settings documentation for more details.
> I am executing from <my home directory>/Django-projects/tutorial01/mysite,
> and this directory has the settings.py which I defined - as was explained
> in the tutorial - to be
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> ...
> }
> }
> I beleive my python imports another settings module but the question is why
>
> and I can override this...
> Thanks.
>
> --
> 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/-/1Vq5YXp-j9QJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

--
Sent from my mobile device

Yacov Schondorf

unread,
Nov 13, 2012, 11:46:10 AM11/13/12
to django...@googlegroups.com
I debugged using pdb and got to a point where I could examine settings.DATABASES. It was not the settings.DATABASES defined in my settings.py. There seems to be another Django installation on the station which conflicts with the tutorial. 

Yacov Schondorf

unread,
Nov 13, 2012, 12:43:36 PM11/13/12
to django...@googlegroups.com
Just to clarify - I cannot modify the other installation but I still need to run the tutorial, so I am still looking for a solution...

Babatunde Akinyanmi

unread,
Nov 15, 2012, 2:06:18 AM11/15/12
to django...@googlegroups.com
Hi Yacov,
If you have confirmed that there are more than one django
installations on your computer, what I can say is crazy things happen
with more than one django installed. Even if you manage to pass this
hurdle, there's a lot more ahead.

On 11/13/12, Yacov Schondorf <yacov.s...@gmail.com> wrote:
> Just to clarify - I cannot modify the other installation but I still need
> to run the tutorial, so I am still looking for a solution...
>
> On Tuesday, November 13, 2012 6:46:10 PM UTC+2, Yacov Schondorf wrote:
>>
>> I debugged using pdb and got to a point where I could
>> examine settings.DATABASES. It was *not* the settings.DATABASES defined
> https://groups.google.com/d/msg/django-users/-/Yj2UaXZlCW0J.
Reply all
Reply to author
Forward
0 new messages