Re: EnvironmentError: Could not import settings

2008-09-01 Thread Daniel Roseman

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 /mysite/ stuff
anyway. Do you really need your Django site to be in a subdirectory?
If not, just use  in your apache conf and drop the
django.root directive.

--
DR.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



RE: EnvironmentError: Could not import settings

2008-09-01 Thread Weber Sites

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" <[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 patterns,
> in this order:
>
> ^admin/
> The current URL, /mysite/, didn't match any of these.
>
> You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a standard
404
> page.

What version of Django are you using? The django.root option was
introduced in changeset 8015. If you are using an older checkout (or
one of the old releases) you will not be able to use it, so either put
the mysite at the start of all your URLs in the urlconf, or don't use
it at all.
--
DR.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: EnvironmentError: Could not import settings

2008-09-01 Thread Daniel Roseman

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 patterns,
> in this order:
>
> ^admin/
> The current URL, /mysite/, didn't match any of these.
>
> You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a standard 404
> page.

What version of Django are you using? The django.root option was
introduced in changeset 8015. If you are using an older checkout (or
one of the old releases) you will not be able to use it, so either put
the mysite at the start of all your URLs in the urlconf, or don't use
it at all.
--
DR.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



RE: EnvironmentError: Could not import settings

2008-09-01 Thread Weber Sites

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 patterns,
in this order: 

^admin/ 
The current URL, /mysite/, didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django
settings file. Change that to False, and Django will display a standard 404
page.

-Original Message-
From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Daniel Roseman
Sent: יום ב 01 ספטמבר 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 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
>     PythonHandler django.core.handlers.modpython
>     SetEnv DJANGO_SETTINGS_MODULE mysite.settings
>     PythonOption django.root /mysite
>     PythonDebug On
>     PythonPath "['/home/WWW2/mysite'] + sys.path"
> 
>
> mysite.settings is at /home/WWW2/mysite
>
> thanks
> berber


No it isn't, mysite.settings is at /home/WW2 (unless your settings
file is actually in /home/WW2/mysite/mysite, which I doubt).

Also, don't hijack existing threads, post your query in a new thread.
--
DR.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: EnvironmentError: Could not import settings

2008-09-01 Thread Daniel Roseman

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 on
> sys.path? Does it have syntax errors?): No module named mysite.settings
>
> 
>     SetHandler python-program
>     PythonHandler django.core.handlers.modpython
>     SetEnv DJANGO_SETTINGS_MODULE mysite.settings
>     PythonOption django.root /mysite
>     PythonDebug On
>     PythonPath "['/home/WWW2/mysite'] + sys.path"
> 
>
> mysite.settings is at /home/WWW2/mysite
>
> thanks
> berber


No it isn't, mysite.settings is at /home/WW2 (unless your settings
file is actually in /home/WW2/mysite/mysite, which I doubt).

Also, don't hijack existing threads, post your query in a new thread.
--
DR.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---