%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
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)
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
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
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 environmen
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 this
t 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 D
10:58 AM, Chen Xu 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 b
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 settings 'mysit
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
sgi.url_scheme'] = environ.get('HTTP_X_URL_SCHEME',
'http')
return _application(environ, start_response)
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.
--
You received this message because you are subscr
On Mon, May 11, 2009 at 9:45 AM, bconnors wrote:
> there must be something I don't have. do i have to install something?
You seem to be in need of a basic Python tutorial, one which will
teach you about things like how to import modules before using them
(because, for example, you seem to be hun
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
#p
I'm not the world's leading expert -- but today I've
solved the problem inside of my current python
shell using os.environ.keys()
I'll attempt to outline the basics, ">>>" indicates what
i typed on the python shell command line
"$" indicates what echoes back
>>>import os
# now to see what envi
here is the exact steps I follow:
> > 1) cd C:\Django\mysite
> > 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 =
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
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
Thank you for the reply Karen. your suggestion worked just fine.
On Nov 10, 9:29 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 10, 2008 at 6:10 PM, ayayalar <[EMAIL PROTECTED]> wrote:
>
> > Hello I am new to Django.
>
> > I am trying to exercise "templates" through the interactive s
On Mon, Nov 10, 2008 at 6:10 PM, ayayalar <[EMAIL PROTECTED]> wrote:
>
> 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
>
>
R: ImportError: Settings cannot be imported, because
environment variable DJANGO_SETTINGS_MODULE is undefined.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
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
SetHa
21 matches
Mail list logo