Re: DJANGO_SETTINGS_MODULE error

2022-03-23 Thread Kasper Laudrup
DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. Instead of just copy-pasting an error message, try to learn how to ask a question someone has a chance to answer. Reading something like this will help solve your problem: https://www.propublica.org/nerds/how-to-ask-programming

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

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-05-03 Thread Sunday Iyanu Ajayi
trated a new django project in a venv using django 3.0 and seems > that DJANGO_SETTINGS_MODULE is not set when running django-admin runserver > > Enter code here.(test1) > ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ >> django-admin runserver >> Traceback (mos

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread 'Amitesh Sahay' via Django users
DJANGO_SETTINGS_MODULE is not the problem I guess, as its not there even in my settings.py. Did you define your app in apps settings?  Regards, Amitesh On Friday, 24 April, 2020, 06:45:43 pm IST, Raja Sekar Sambath wrote: Yes I'm On Fri, 24 Apr 2020 at 18:30, DANIEL URBANO DE LA

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread Raja Sekar Sambath
uot;/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py", >>>> line 67, in handle >>>> if not settings.DEBUG and not settings.ALLOWED_HOSTS: >>>> File >>>> "/home/ioana.i/Workspace/

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread DANIEL URBANO DE LA RUA
i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py", >>> line 67, in handle >>> if not settings.DEBUG and not settings.ALLOWED_HOSTS: >>> File >>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread Raja Sekar Sambath
te-packages/django/core/management/commands/runserver.py", >> line 67, in handle >> if not settings.DEBUG and not settings.ALLOWED_HOSTS: >> File >> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py", >> line 76,

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-20 Thread Ayser shuhaib
gt; line 67, in handle >> if not settings.DEBUG and not settings.ALLOWED_HOSTS: >> File >> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py", >> line 76, in __getattr__ >> self._setup(name) >> File >> &

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ilie Ioana
ine 76, in __getattr__ > self._setup(name) > File > "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py", > > line 61, in _setup > % (desc, ENVIRONMENT_VARIABLE)) > django.core.exceptions.ImproperlyConfigured: Requested

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ilie Ioana
na/test1/lib/python3.6/site-packages/django/conf/__init__.py", line 61, in _setup % (desc, ENVIRONMENT_VARIABLE)) django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ayser shuhaib
seems > that DJANGO_SETTINGS_MODULE is not set when running django-admin runserver > > Enter code here.(test1) > ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ >> django-admin runserver >> Traceback (most recent call last): >> File "/home/ioana.i/Worksp

Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ilie Ioana
Hi,I'm new with django and python. I just strated a new django project in a venv using django 3.0 and seems that DJANGO_SETTINGS_MODULE is not set when running django-admin runserver Enter code here.(test1) > ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ django-admin > run

django.core.exceptions.ImproperlyConfigured DJANGO_SETTINGS_MODULE

2019-09-18 Thread Brad S
I am trying to get a new server up and running and I am make a n00b error somewhere. django.core.exceptions.ImproperlyConfigured: Requested setting MIDDLEWARE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure

Re: django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call sett

2018-12-07 Thread Sidnei Pereira
e-packages\rest_framework\authtoken\models.py", >>> line 17, in Token >>> settings.AUTH_USER_MODEL, related_name='auth_token', >>> File "C:\Python\lib\site-packages\django\conf\__init__.py", line 57, >>> in __getattr__ >>> sel

Re: django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call sett

2018-12-06 Thread Parker Bernard
H_USER_MODEL, related_name='auth_token', >> File "C:\Python\lib\site-packages\django\conf\__init__.py", line 57, in >> __getattr__ >> self._setup(name) >> File "C:\Python\lib\site-packages\django\conf\__init__.py", line 42, in >> _setup >>

Re: django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call sett

2018-12-06 Thread Sidnei Pereira
", line 42, in > _setup > % (desc, ENVIRONMENT_VARIABLE)) > django.core.exceptions.ImproperlyConfigured: Requested setting > AUTH_USER_MODEL, but settings are not configured. You must either define > the environment variable DJANGO_SETTINGS_MODULE or call > settings.conf

Re: django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call sett

2018-12-05 Thread Ryan Nowakowski
e) >File "C:\Python\lib\site-packages\django\conf\__init__.py", line 42, in > >_setup >% (desc, ENVIRONMENT_VARIABLE)) >django.core.exceptions.ImproperlyConfigured: Requested setting >AUTH_USER_MODEL, but settings are not configured. You must either >define >the env

django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings

2018-12-05 Thread Tushar Khairnar
USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: whats the use of setting mysite.settings to DJANGO_SETTINGS_MODULE?

2018-05-19 Thread Daniel Germano Travieso
bundled with. https://docs.djangoproject.com/en/1.11/topics/settings/#envvar-DJANGO_SETTINGS_MODULE On Thursday, May 17, 2018 at 12:09:33 AM UTC-3, Utpal Brahma wrote: > > under manage.py > > > > > > #!/usr/bin/env python > import os > import sy

whats the use of setting mysite.settings to DJANGO_SETTINGS_MODULE?

2018-05-16 Thread Utpal Brahma
under manage.py #!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings") try: from django.core.management import execute_from_command_line except ImportErr

Re: Pycharm and DJANGO_SETTINGS_MODULE

2016-04-10 Thread Avraham Serour
r i have bug > like below > > > django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but >> settings are not configured. You must either define the environment >> variable DJANGO_SETTINGS_MODULE or call settings.configure() before >> accessing settings. &

Pycharm and DJANGO_SETTINGS_MODULE

2016-04-07 Thread Dariusz Mysior
ine the environment > variable DJANGO_SETTINGS_MODULE or call settings.configure() before > accessing settings. > > In Run Configuration in environment paramets I have DJANGO_SETTINGS_MODULE with mysite.settings, wsgi and manage also have this info, where can I check it else... -

Re: Problem with DJANGO_SETTINGS_MODULE

2016-03-07 Thread James Schneider
On Mar 7, 2016 9:37 PM, "Dariusz Mysior" wrote: > > When I use Console system it work's using manage shell and next import but in PyCharm Edu 2 in Python Console I have this message like below I wright. In PyCharm Ipython run automaticly I am not using manage shell

Re: Problem with DJANGO_SETTINGS_MODULE

2016-03-07 Thread Dariusz Mysior
environ.setdefault("DJANGO_SETTINGS_MODULE", "biblio.settings") > > where biblio is my main project name > > > > Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not >> configured. You must either define the environment variable >>

Re: Problem with DJANGO_SETTINGS_MODULE

2016-03-07 Thread James Schneider
anage.py I have line > > os.environ.setdefault("DJANGO_SETTINGS_MODULE", "biblio.settings") > > where biblio is my main project name > > > > Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not >> configured. You must either

Problem with DJANGO_SETTINGS_MODULE

2016-03-07 Thread Dariusz Mysior
I use Django 1.8 Python 3.4.3 and I have problem when i go to Ipython or Python and I try use command from contact.forms import MessageForm2 I have a error like below. I add that in wsgi.py and manage.py I have line os.environ.setdefault("DJANGO_SETTINGS_MODULE", "biblio.se

Re: problem with DJANGO_SETTINGS_MODULE

2016-02-20 Thread bob gailer
nment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings." Red faced embarrassment - I had inadvertently switched from python manage.py to django-admin runserver Bob Gailer -- You received this message because you are subscribed to the Google Groups &quo

Re: problem with DJANGO_SETTINGS_MODULE

2016-02-20 Thread James Schneider
> After several days of running my server with no problem I am suddenly confronted with: > > "django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_

problem with DJANGO_SETTINGS_MODULE

2016-02-19 Thread bob gailer
After several days of running my server with no problem I am suddenly confronted with: "django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or

Re: Accessing Django models using DJANGO_SETTINGS_MODULE

2015-03-12 Thread Tom Evans
On Sun, Mar 8, 2015 at 5:21 AM, Dheerendra Rathor <dheeru.ratho...@gmail.com> wrote: > I've a django project and I've few models like ChatRoom and Chat etc > > I'm accessing the ChatRooms from commandline using ipython as follow > In [1]: import os > > In [2]: os.environ

Re: Accessing Django models using DJANGO_SETTINGS_MODULE

2015-03-10 Thread Collin Anderson
Rathor wrote: > > I've a django project and I've few models like ChatRoom and Chat etc > > I'm accessing the ChatRooms from commandline using ipython as follow > In [1]: import os > > In [2]: os.environ['DJANGO_SETTINGS_MODULE'] = 'chat_project.settings' > > In [3]: f

Accessing Django models using DJANGO_SETTINGS_MODULE

2015-03-08 Thread Dheerendra Rathor
I've a django project and I've few models like ChatRoom and Chat etc I'm accessing the ChatRooms from commandline using ipython as follow In [1]: import os In [2]: os.environ['DJANGO_SETTINGS_MODULE'] = 'chat_project.settings' In [3]: from chat.models import Chat, ChatRoom In [4

Re: export DJANGO_SETTINGS_MODULE

2015-01-21 Thread Bill Freeman
It looks like you are typing "*django-admin.py startproject WebSite*" at the python prompt, which is incorrect. You type it at the shell. If you get command not found, then instead type "python full/path/to/django-admin.py startproject WebSite". And in any case, the current directory must be

Re: export DJANGO_SETTINGS_MODULE

2015-01-21 Thread th . granier
Hello i have sesinstalled django and re installed withdebian package when i lauch command django-admin.py startproject website here is what i get: *python3.4Python 3.4.2 (default, Dec 27 2014, 13:16:08) [GCC 4.9.2] on linuxType "help", "copyright", "credits" or "license" for more

export DJANGO_SETTINGS_MODULE

2015-01-21 Thread th . granier
Hello i have just installed django 1.7 on Debian jessie via synaptic when i start a console, import django is OK print(django.get_version()) ---> version 1.7.2 Now i try to launch the command "django-admin.py startproject WebSite" i get the error: *Traceback

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

Re: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before access

2013-11-02 Thread hjwp
settings automatically - it > automatically sets the environment variable DJANGO_SETTINGS_MODULE to > the correct value. > > Cheers > > Tom > > ¹ Or standalone apps. For apps within the project, you use manage.py > startapp, like everything else in the project. > -- You receive

Re: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before access

2013-04-25 Thread Iftikhar Ali
> but while testing and pychecker i am getting this error how should i > configure DJANGO_SETTINGS_MODULE > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before access

2013-04-25 Thread Tom Evans
y-and-manage-py The reason you want to use manage.py over django-admin,py is that manage.py can usually find your settings automatically - it automatically sets the environment variable DJANGO_SETTINGS_MODULE to the correct value. Cheers Tom ¹ Or standalone apps. For apps within the proj

ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing

2013-04-25 Thread Iftikhar Ali
when i am running the project it is running perfectly fine but when i am trying to open django-admin.py shell the error: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call

Re: DJANGO_SETTINGS_MODULE in a setup with only individual Django components

2012-12-01 Thread Stefan Schwarzburg
) > > says that this should work, I always get the error: > > ImportError: Settings cannot be imported, because environment variable > DJANGO_SETTINGS_MODULE is undefined. > > Anyone who can help with this? > > Cheers, > Stefan > -- You received this messa

DJANGO_SETTINGS_MODULE in a setup with only individual Django components

2012-12-01 Thread Stefan Schwarzburg
ngs-module) says that this should work, I always get the error: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. Anyone who can help with this? Cheers, Stefan -- You received this message because you are subscribed to the Google Gro

Re: environment variable DJANGO_SETTINGS_MODULE is undefined.

2012-10-25 Thread Mike Dewhirst
ble %s is undefined." % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. >>> how do i fix it. what am i missing here You are directly importing a package which is on the Python path so the system f

Re: environment variable DJANGO_SETTINGS_MODULE is undefined.

2012-10-22 Thread Mike Dewhirst
ARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. >>> how do i fix it. what am i missing here You are directly importing a package which is on the Python path so the system finds it ok. But, that package (django_tables2)

environment variable DJANGO_SETTINGS_MODULE is undefined.

2012-10-22 Thread DjgoNy
ne 184, in inner self._setup() File "c:\Python27\lib\site-packages\django\conf\__init__.py", line 40, in _setup raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be import

Re: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2012-06-26 Thread alvaroalo
ente estructura > > manage.py > miProyecto/ >__init__.py settings.py urls.py wsgi.py > > al posicionarme en el directorio raiz del proyecto me lanza el > siguiente error > ImportError: Settings cannot be imported, because environment variable > DJANGO_SETTINGS_MODULE

Re: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2012-06-26 Thread bruno desthuilliers
Proyecto con la > siguiente estructura > > manage.py > miProyecto/ >__init__.py settings.py urls.py wsgi.py > > al posicionarme en el directorio raiz del proyecto me lanza el > siguiente error > ImportError: Settings cannot be imported, because environ

ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2012-06-25 Thread totechess
posicionarme en el directorio raiz del proyecto me lanza el siguiente error ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. Anterior a esta version no me generaba esta estructura de archivos. ¿Como puedo corregir el problema? -- You received

Re: DJANGO_SETTINGS_MODULE problem

2011-11-15 Thread James Pic
> ./manage.py shell --settings=client_settings.foo In [1]: from django.conf import settings In [2]: settings.HELLO Out[2]: True > What's not working? > Failure is not working! Thanks > Tim. > James >> Hi all, >> >> I don't understand something about DJANGO_SETTINGS_MOD

Re: DJANGO_SETTINGS_MODULE problem

2011-11-15 Thread Tim Sawyer
I've done this. You should be able to startup the test server with --settings=client_settings/foo.py and get all of settings.py and HELLO available to you. What's not working? Tim. > Hi all, > > I don't understand something about DJANGO_SETTINGS_MODULE. My > intention is to s

Re: DJANGO_SETTINGS_MODULE problem

2011-11-15 Thread Tom Evans
On Tue, Nov 15, 2011 at 4:42 PM, James Pic <james...@gmail.com> wrote: > Hi all, > > I don't understand something about DJANGO_SETTINGS_MODULE. My > intention is to serve several websites from the same project > installation, by creating a subdir of website-specific setti

DJANGO_SETTINGS_MODULE problem

2011-11-15 Thread James Pic
Hi all, I don't understand something about DJANGO_SETTINGS_MODULE. My intention is to serve several websites from the same project installation, by creating a subdir of website-specific settings. project_root/   settings.py   client_settings/     __init__.py     foo.py     bar.py     etc

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-03 Thread Kann
s Oscar, I read the page already, but am still not totally > > understood. The page said the value of DJANGO_SETTINGS_MODULE should > > be "Python path syntax", e.g.  mysite.settings. What exactly is > > "Python path syntax"? Would it be ok if I just provide t

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kenneth Gonsalves
On Thu, 2011-06-02 at 05:29 -0700, Kann wrote: > Thanks Oscar, I read the page already, but am still not totally > understood. The page said the value of DJANGO_SETTINGS_MODULE should > be "Python path syntax", e.g. mysite.settings. What exactly is > "Python path syntax

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kirill Spitsin
On Thu, Jun 02, 2011 at 05:29:01AM -0700, Kann wrote: > Thanks Oscar, I read the page already, but am still not totally > understood. The page said the value of DJANGO_SETTINGS_MODULE should > be "Python path syntax", e.g. mysite.settings. What exactly is > "Python p

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kann
Thanks Oscar, I read the page already, but am still not totally understood. The page said the value of DJANGO_SETTINGS_MODULE should be "Python path syntax", e.g. mysite.settings. What exactly is "Python path syntax"? Would it be ok if I just provide the value as

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Oscar Carballal
2011/6/2 Kann <vearas...@gmail.com>: > Yep, but what if I just want to load all configurations from the > entirely new file. What should be the proper value for me to give to > the DJANGO_SETTINGS_MODULE? Take a look to https://docs.djangoproject.com/en/dev/topics/settings/ You c

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kann
> You can import "setting_new.py" from "settings.py", that way you still > only need to stablish settings.py as the DJANGO_SETTINGS_MODULE. Yep, but what if I just want to load all configurations from the entirely new file. What should be the p

Re: Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Oscar Carballal
You can import "setting_new.py" from "settings.py", that way you still only need to stablish settings.py as the DJANGO_SETTINGS_MODULE. It's strange though, the development server of django (python manage.py runserver) should import automatically the settings module and add i

Confusion about DJANGO_SETTINGS_MODULE

2011-06-02 Thread Kann
Dear all, In order to run django on the server, I need to specify the file containing all the configuration and export it as a system variable called "DJANGO_SETTINGS_MODULE". Also, the documentation on django project website also stated that the value of DJANGO_SETTINGS_MOD

Re: Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-15 Thread Shawn Milochik
mail.com> wrote: > Hi, Django developers: > I am very new here, trying to set up my Django > I have a project called 'mysite' > when I run: > $ django-admin.py runserver > > the terminal gives: > Error: Settings cannot be imported, because environment variable > DJANGO

Re: Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-15 Thread Chen Xu
: >> Error: Settings cannot be imported, because environment variable >> DJANGO_SETTINGS_MODULE is undefined >> >> then I tried this: >> $ export DJANGO_SETTINGS_MODULE=mysite.settings >> >> the terminal then gives me: >> django-admin.py runserverError: Could not impo

Re: Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-15 Thread Praveen Krishna R
al gives: > Error: Settings cannot be imported, because environment variable > DJANGO_SETTINGS_MODULE is undefined > > then I tried this: > $ export DJANGO_SETTINGS_MODULE=mysite.settings > > the terminal then gives me: > django-admin.py runserverError: Could not import se

Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-14 Thread Chen Xu
Hi, Django developers: I am very new here, trying to set up my Django I have a project called 'mysite' when I run: $ django-admin.py runserver the terminal gives: Error: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined then I tried this: $ export

Re: manage.py ignores DJANGO_SETTINGS_MODULE

2010-07-05 Thread euan.godd...@googlemail.com
called "setup_environ. This is called by all management > > commands (i.e. manage.py). If you note here the os.environ is set > > unconditionally. I suppose for your setup to work correctly django > > should be doing: > > > if not "DJANGO_SETTINGS_MODULE" in os.e

Re: manage.py ignores DJANGO_SETTINGS_MODULE

2010-07-05 Thread Graham Dumpleton
_init__ you'll find > a function called "setup_environ. This is called by all management > commands (i.e. manage.py). If you note here the os.environ is set > unconditionally. I suppose for your setup to work correctly django > should be doing: > > if not "DJANGO_S

Re: manage.py ignores DJANGO_SETTINGS_MODULE

2010-07-05 Thread euan.godd...@googlemail.com
doing: if not "DJANGO_SETTINGS_MODULE" in os.environ: os.environ['DJANGO_SETTINGS_MODULE'] = ... However, since this is not the case you don't have much choice other then to use --settings option, or alter your manage.py file so that it sets up this hard-coded path before it calls the mai

manage.py ignores DJANGO_SETTINGS_MODULE

2010-07-04 Thread ShawnMilo
I have DJANGO_SETTINGS_MODULE set in my environment to an alternative settings file. The alternate file imports the original settings file and overrides some values for my development environment. Whenever I try to run ./manage.py runserver, it insists on using the settings.py on the same path

Re: dotted path name requirements for WSGI os.environ['DJANGO_SETTINGS_MODULE'] =

2010-03-10 Thread John Griessen
Daniel Roseman wrote: On Mar 10, 3:44 pm, John Griessen <j...@industromatic.com> wrote: Is this line OK? os.environ['DJANGO_SETTINGS_MODULE'] = 'industromatic.com.settings' The DJANGO_SETTINGS_MODULE setting is a Python module, so it must be a valid Python path. "indust

Re: dotted path name requirements for WSGI os.environ['DJANGO_SETTINGS_MODULE'] =

2010-03-10 Thread Daniel Roseman
On Mar 10, 3:44 pm, John Griessen <j...@industromatic.com> wrote: > I am serving up sites named after their domains with .com in the name > but when I saw the os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' > specified in tutorials it seemed like putting a .com might

dotted path name requirements for WSGI os.environ['DJANGO_SETTINGS_MODULE'] =

2010-03-10 Thread John Griessen
I am serving up sites named after their domains with .com in the name but when I saw the os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' specified in tutorials it seemed like putting a .com might be interpreted wrong. Can the WSGI file os.environ['DJANGO_SETTINGS_MODULE'] = deal

Re: how to define DJANGO_SETTINGS_MODULE for multiple sites.

2010-02-09 Thread rebus_
On 9 February 2010 03:25, neridaj <neri...@gmail.com> wrote: > I'm trying to setup my first cron job and I think the reason my script > is not running is because I don't have DJANGO_SETTINGS_MODULE defined > for my environment i.e., .profile script. I'm using

how to define DJANGO_SETTINGS_MODULE for multiple sites.

2010-02-08 Thread neridaj
I'm trying to setup my first cron job and I think the reason my script is not running is because I don't have DJANGO_SETTINGS_MODULE defined for my environment i.e., .profile script. I'm using mod_wsgi so my DJANGO_SETTINGS_MODULE is defined in the respective wsgi file for each site, so my

DJANGO_SETTINGS_MODULE is undefined

2010-02-03 Thread neridaj
I'm getting this error even though my DJANGO_SETTINGS_MODULE is defined in my wsgi file: import os, sys sys.path.append('/home/username/public_html/mysite.com') sys.path.append('/home/username/public_html/mysite.com/mysite') os.environ['PYTHON_EGG_CACHE'] = '/home/username/public_html

Re: settings.configure vs DJANGO_SETTINGS_MODULE

2009-10-14 Thread Doug Blank
t; DEFAULT_TABLESPACE = '' > CACHE_BACKEND = 'locmem://' > TRANSACTIONS_MANAGED = False > > and it will run further into some new code, until django looks up > another setting, and it isn't there. > > Everything works fine if I set the DJANGO_SETTINGS_MODULE env variable. >

settings.configure vs DJANGO_SETTINGS_MODULE

2009-10-13 Thread Doug Blank
SE_OPTIONS = '' URL_VALIDATOR_USER_AGENT = '' DEFAULT_INDEX_TABLESPACE = '' DEFAULT_TABLESPACE = '' CACHE_BACKEND = 'locmem://' TRANSACTIONS_MANAGED = False and it will run further into some new code, until django looks up another setting, and it isn't there. Everything works fine if I set the DJANGO_SETTING

Re: django-admin.py complains about missing DJANGO_SETTINGS_MODULE

2009-07-14 Thread Dhruv Adhia
Copy your app to site-packages folder and see if that works. If you dont know where site-packages folder is , do 'which python' from command line and you will get an idea. Dhruv Adhia http://thirdimension.com On Tue, Jul 14, 2009 at 8:22 AM, Nate Reed wrote: > The

django-admin.py complains about missing DJANGO_SETTINGS_MODULE

2009-07-14 Thread Nate Reed
The admin tool is complaining about this environment variable, but I've never had this problem before on this box. I'm not sure what's changed since the last time I used it. I tried specifying the path: $ django-admin.py syncdb --settings=mysite.settings Error: Could not import settings

Re: environment variable DJANGO_SETTINGS_MODULE is undefined

2009-05-11 Thread bconnors
thanks for the advice, but #set DJANGO_SETTINGS_MODULE=mysite.settings #python manage.py syncdb --settings=settings # ln -s /usr/lib/python2.5/site-packages/pinax /home/pubuntu/pinax # python manage.py suncdb #curl -o pinax-boot.py http://svn.pinaxproject.com/pinax/trunk/scripts/pinax-boo t.pt

Re: environment variable DJANGO_SETTINGS_MODULE is undefined

2009-05-09 Thread NoviceSortOf
owing was blank raising a nasty key error in apocalyptic alarming red text ending with >>>os.environ["DJANGO_SETTINGS_MODULE"] $..."raise KeyError(key)" # so had to set it to get moving using # first i verified i was in my projects path >>>os.getcwd() $/home/m

Re: environment variable DJANGO_SETTINGS_MODULE is undefined

2009-05-07 Thread bconnors
pubu...@pubuntu:~/django-trunk/build/lib/django/bin/myapp1 export DJANGO_SETTINGS_MODULE=myapp1.settings export PYTHONPATH=/usr/lib/python2.5/site-packages django-admin.py dumpdata Error: Could not import settings 'myapp1.settings' (Is it on sys.path? Does it h ave syntax errors?): No module

Re: environment variable DJANGO_SETTINGS_MODULE is undefined

2009-05-07 Thread Sieker Adi Jörg
Hi, On 07.05.2009, at 16:02, bconnors wrote: > > I saw this chat related to DJANGO_SETTINGS_MODULE is undefined. > Hello I am new to Django. > I am trying to exercise "templates" through the interactive shell, > however I end up getting this error. Can anyone help? &g

environment variable DJANGO_SETTINGS_MODULE is undefined

2009-05-07 Thread bconnors
I saw this chat related to DJANGO_SETTINGS_MODULE is undefined. Hello I am new to Django. I am trying to exercise "templates" through the interactive shell, however I end up getting this error. Can anyone help? here is the exact steps I follow: 1) cd C:\Django\mysite 2) set DJANGO_SETTI

Re: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2008-11-10 Thread ayayalar
>    urls.py > >    urls.pyc > >    views.py > >    views.pyc > >    __init__.py > >    __init__.pyc > > > 2) set DJANGO_SETTINGS_MODULE=mysite.settings I've also tried set > > DJANGO_SETTINGS_MODULE=settings.py > > Setting it to mysite.settings will

Re: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2008-11-10 Thread Karen Tracey
I follow: > > 1) cd C:\Django\mysite > >manage.py >settings.py >settings.pyc >urls.py >urls.pyc >views.py >views.pyc >__init__.py >__init__.pyc > > 2) set DJANGO_SETTINGS_MODULE=mysite.settings I've also tried set > DJANGO_S

ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2008-11-10 Thread ayayalar
views.py views.pyc __init__.py __init__.pyc 2) set DJANGO_SETTINGS_MODULE=mysite.settings I've also tried set DJANGO_SETTINGS_MODULE=settings.py 3) python 4) >>> from django.template import Template >>> t = Template("My name is {{ name }}.") 5) ERROR: Im

ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2008-09-02 Thread Weber Sites
I'm using LAMP with Django 1.0 B2 and mod_python. going through http://www.djangobook.com/en/1.0/chapter20/ I get : ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. in my apache2 httpd-vhosts.conf i have SetHandler

Re: django_settings_module not being set by manage.py

2008-05-23 Thread David Robinson
Karen Tracey wrote: > So what's changed, I'm guessing, to introduce this problem is you added this > import to to your project's __init__.py file. Karen, Thanks - while I was trying to get my head wrapped around newforms-admin, I put some stuff in __init__.py and then forgot to take it out.

Re: django_settings_module not being set by manage.py

2008-05-23 Thread Karen Tracey
le then goes and tries to import some stuff (django.contrib.admin) that relies on the environment already being set up. But the setup_environ function hasn't yet reached the point where it sets the DJANGO_SETTINGS_MODULE environment variable, so unless you've already set it yourself, you get the error. So

Re: django_settings_module not being set by manage.py

2008-05-23 Thread David Robinson
28, in __getattr__ self._import_settings() File "/usr/local/lib/python2.5/site-packages/django/conf/__init__.py", line 57, in _import_settings raise ImportError("Settings cannot be imported, because environment variable %s is undefin

Re: django_settings_module not being set by manage.py

2008-05-23 Thread Karen Tracey
On Fri, May 23, 2008 at 12:11 PM, David Robinson <[EMAIL PROTECTED]> wrote: > > I have run into a problem that I don't understand - when I try to run > "shell manage.py shell" I just started getting an error about the > DJANGO_SETTINGS_MODULE environment variable no

django_settings_module not being set by manage.py

2008-05-23 Thread David Robinson
I have run into a problem that I don't understand - when I try to run "shell manage.py shell" I just started getting an error about the DJANGO_SETTINGS_MODULE environment variable not being defined. I found the information I needed to work around the problem (on this list - thank

Re: DJANGO_SETTINGS_MODULE

2008-04-04 Thread Karen Tracey
\app'] > sys.path += ['C:\\Django\\projects\\','C:\\Django\\projects\\shop\\'] > > os.environ['DJANGO_SETTINGS_MODULE'] = 'shop.settings' > from django.models.shop import products > ## > If this program is started from > C:\Django\projects\shop it works OK > >

DJANGO_SETTINGS_MODULE

2008-04-04 Thread Pythoni
My project directory looks like this C:\Django\projects\shop\apps\shop\views I have this simple program import sys,os sys.path += ['C:\\Python23\\Lib\\site-packages\\django\\app'] sys.path += ['C:\\Django\\projects\\','C:\\Django\\projects\\shop\\'] os.environ['DJANGO_SETTINGS_MODULE

Re: DJANGO_SETTINGS_MODULE? How should it be used?

2008-02-07 Thread Schmoopie
Yes -- that does resolve the problem -- adding the directory containing mysite to the PYTHONPATH. Wonderful, Jarek. On Feb 7, 4:38 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Schmoopie napisał(a): > > > DJANGO_SETTINGS_MODULE issues are driving me crazy. So any assistan

Re: DJANGO_SETTINGS_MODULE? How should it be used?

2008-02-07 Thread Jarek Zgoda
Schmoopie napisał(a): > DJANGO_SETTINGS_MODULE issues are driving me crazy. So any assistance > appreciated. > > I set the environ variable to mysite.settings, as recommended in the > documentation, but then I get: ImportError could not import settings > 'mysite.settings

DJANGO_SETTINGS_MODULE? How should it be used?

2008-02-07 Thread Schmoopie
DJANGO_SETTINGS_MODULE issues are driving me crazy. So any assistance appreciated. I set the environ variable to mysite.settings, as recommended in the documentation, but then I get: ImportError could not import settings 'mysite.settings', no module named mysite.settings Should the variable

Re: Linux django_settings_module problem

2007-09-11 Thread Collin Grady
You can also just fix the imports to reference things properly, including the site name :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Linux django_settings_module problem

2007-09-11 Thread Graham Dumpleton
thing' > export DJANGO_DB_PASS='something' > export DJANGO_SECRET_KEY='something' > export DJANGO_SETTINGS_MODULE='mysite.settings' > > # User specific aliases and functions --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Linux django_settings_module problem

2007-09-11 Thread johnny
PYTHONPATH=$PYTHONPATH:/home/bobby/dev/workspace:/home/bobby/ dev/workspace/mysite export DJANGO_PROJECT='something' export DJANGO_DB_NAME='something' export DJANGO_DB_USER='something' export DJANGO_DB_PASS='something' export DJANGO_SECRET_KEY='something' export DJANGO_SETTINGS_MODULE='mysite.settings

  1   2   >