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.
> 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-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
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.
On Tuesday, November 13, 2012 6:32:06 PM UTC+2, Tundebabzy wrote:
> Hi Yacov, > Why do you think python is importing another settings.py??
> On 11/13/12, Yacov Schondorf <yacov.s...@gmail.com <javascript:>> 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<javascript:>.
> > To unsubscribe from this group, send email to > > django-users...@googlegroups.com <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en.
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 > in my settings.py. There seems to be another Django installation on the > station which conflicts with the tutorial.
> On Tuesday, November 13, 2012 6:32:06 PM UTC+2, Tundebabzy wrote:
>> 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.
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.schond...@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
>> in my settings.py. There seems to be another Django installation on the
>> station which conflicts with the tutorial.
>> On Tuesday, November 13, 2012 6:32:06 PM UTC+2, Tundebabzy wrote:
>>> 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
> --
> 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/-/Yj2UaXZlCW0J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.