On Sep 1, 5:39 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote:
> How do I know which ver?
What does it say when you start up the development server?
Or in the shell, you can do
>>> import django
>>> django.get_version()
u'1.0-alpha-SVN-8210'
To be honest, I'm not sure you actually want the
How do I know which ver?
-Original Message-
From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Daniel Roseman
Sent: יום ב 01 ספטמבר 2008 17:48
To: Django users
Subject: Re: EnvironmentError: Could not import settings
On Sep 1, 3:10 pm, "Weber Sites&quo
On Sep 1, 3:10 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote:
> Thanks, looks like we are making progress :)
>
> Now I get
>
> Page not found (404)
> Request Method: GET
> Request URL:http://django.weberdev.com:82/mysite/
>
> Using the URLconf defined in mysite.urls, Django tried these URL
ספטמבר 2008 15:57
To: Django users
Subject: Re: EnvironmentError: Could not import settings
On Sep 1, 1:52 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm trying to get the the tutorial02 (mysite) to work with apache.
> No matter what I do I keep getting this
On Sep 1, 1:52 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm trying to get the the tutorial02 (mysite) to work with apache.
> No matter what I do I keep getting this error :
>
> EnvironmentError: Could not import settings 'mysite.settings' (Is it
Hi
I'm trying to get the the tutorial02 (mysite) to work with apache.
No matter what I do I keep getting this error :
EnvironmentError: Could not import settings 'mysite.settings' (Is it on
sys.path? Does it have syntax errors?): No module named mysite.settings
SetHandler python-program
As Collin said, if your script isn't running from within a "proper"
Django environment, you have to ensure that your settings module is
correctly specified. You can do it several ways...
1. Using Django's setup_environ:
# put before any django imports, at the top of your file
from
If you don't use "manage.py shell" you must set your environment
properly - set the DJANGO_SETTINGS_MODULE and PYTHONPATH properly,
similar to how the modpython docs show you to set them for that to
work.
--~--~-~--~~~---~--~~
You received this message because
le "D:\Python25\Lib\site-packages\django\conf\__init__.py", line
28, in __getattr__
self._import_settings()
File "D:\Python25\Lib\site-packages\django\conf\__init__.py", line
53, in _import_settings
raise EnvironmentError, "Environment variable %s is undefine
n _import_settings
> self._target = Settings(settings_module)
>
> File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line
> 82, in __init__
> raise EnvironmentError, "Could not import settings '%s' (Is it on
> sys.path? Does it have syntax er
tr__
self._import_settings()
File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line
54, in _import_settings
self._target = Settings(settings_module)
File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line
82, in __init__
raise EnvironmentE
11 matches
Mail list logo