Re: DJANGO_SETTINGS_MODULE error

2022-03-23 Thread Kasper Laudrup
On 23/03/2022 12.55, Prashanth Patelc wrote: /I am getting this error / /please solve any one thanks in advance./ / / django.core.exceptions.ImproperlyConfigured: Requested setting REST_FRAMEWORK, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_

DJANGO_SETTINGS_MODULE error

2022-03-23 Thread Prashanth Patelc
*I am getting this error * *please solve any one thanks in advance.* django.core.exceptions.ImproperlyConfigured: Requested setting REST_FRAMEWORK, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing

ImproperlyConfigured DJANGO_SETTINGS_MODULE error when migrating from 1.5.1 to 1.6

2013-11-08 Thread Brian DeWeese
I'm using Apache 2.4 and Python 2.6.8. We have several different virtual hosts and the DJANGO_SETTINGS_MODULE is defined within each virtual host. However, the wsgi file gets loaded before the settings.py file. This works fine under Django 1.5.1 as settings aren't referenced from within the

Re: DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-08-07 Thread Bruno Tikami
Hi everybody (specially Malcom), After a long period, I had time to delte the unecessary variables and test it. So, finally, the goes the list of settigns you must include on you default settings file in order to use you application models outside Django web context (a python server side script fo

Re: DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-05-11 Thread Bruno Tikami
Malcolm, it works Thanks a lot, I shall delete the unecessary global settings. TKS!!! Tkm On 5/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > Hi Bruno, > > On Fri, 2007-05-11 at 11:11 -0300, Bruno Tikami wrote: > > Hello Malcolm > > > > Thanks for you fast reply > > > > I'

Re: DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-05-11 Thread Malcolm Tredinnick
Hi Bruno, On Fri, 2007-05-11 at 11:11 -0300, Bruno Tikami wrote: > Hello Malcolm > > Thanks for you fast reply > > I'll try to put the missing settings on my project.settings . Do I > have to call configure() in some diferent way after I do that? I mean, > if my settings have all the global

Re: DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-05-11 Thread Bruno Tikami
Hello Malcolm Thanks for you fast reply I'll try to put the missing settings on my project.settings . Do I have to call configure() in some diferent way after I do that? I mean, if my settings have all the global settings... On 5/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On

Re: DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-05-11 Thread Malcolm Tredinnick
On Fri, 2007-05-11 at 22:53 +1000, Malcolm Tredinnick wrote: [...] > Manual configuration isn't really designed to make it trivial to specify > your normal settings file and some overrides like you are trying to do > here. I should point out that there wasn't really any technical reason for this

Re: DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-05-11 Thread Malcolm Tredinnick
On Fri, 2007-05-11 at 09:41 -0300, Bruno Tikami wrote: > Hi! > > I'm trying to use Django models from a python script and I'm having > some settings problem. Even though I called settings.configure, it > keeps ordering for some other setting parameter. The error is listed > below. Any idea? > >

DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-05-11 Thread Bruno Tikami
Hi! I'm trying to use Django models from a python script and I'm having some settings problem. Even though I called settings.configure, it keeps ordering for some other setting parameter. The error is listed below. Any idea? $ python >>> import recorder >>> import recorder.settings >>> from dja

another bug caused importing import DJANGO_SETTINGS_MODULE error?

2006-03-06 Thread favo
anyone meet the bug below? if your have a app have the same name as projectname, manage.py will always print out : Traceback (most recent call last): File "./manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.3/site-packages/django/core/management.py", line 1051, i