I'm trying to push a beta build of an App I wrote to my Apache server
but, I'm running into some problems (I'm pretty sure it's permission
related)

Here's the details.

httpd.conf
[code]
<Location "/">
 SetHandler python-program
 PythonPath "['/home/thebest/TheBest/alpha1'] + sys.path"
 PythonHandler django.core.handlers.modpython
 SetEnv DJANGO_SETTINGS_MODULE TheBest.settings
 PythonDebug On
</Location>
[/code]

/home/thebest/TheBest/alpha1/TheBest is the root of the Django project
(contains __init__.py)

I can successfully run stuff like manage.py validate / shell /
runserver

So I KNOW the App can see the settings but, when I try to load the web-
side of it i get

[code]
Mod_python error: "PythonHandler django.core.handlers.modpython"
**snip**
EnvironmentError: Could not import settings 'TheBest.settings'
(Is it on sys.path? Does it have syntax errors?): No module named
TheBest.settings
[/code]

I know the paths are correct and everything is in the right place so
I'm left thinking Apache just doesn't have the proper permissions
here.

[code]
[EMAIL PROTECTED] alpha1]# ls -al
total 24
drwxr-xr-x 3 thebest bestx 4096 Jun  6 15:31 .
drwxr-xr-x 3 thebest bestx 4096 Jun  6 15:31 ..
drwxr-xr-x 9 thebest bestx 4096 Jun  6 15:35 TheBest
[/code]

[code]
[EMAIL PROTECTED] TheBest]# ls -al
drwxr-xr-x 9 thebest bestx 4096 Jun  6 15:35 .
drwxr-xr-x 3 thebest bestx 4096 Jun  6 15:31 ..
drwxr-xr-x 2 thebest bestx 4096 Jun  6 15:35 CRON
-rwxr-xr-x 1 thebest bestx   82 Jun  6 15:31 ._.DS_Store
-rwxr-xr-x 1 thebest bestx 6148 Jun  6 15:30 .DS_Store
drwxr-xr-x 2 thebest bestx 4096 Jun  6 15:30 xapp
-rwxr-xr-x 1 thebest bestx    0 May 25 12:25 __init__.py
-rwxr-xr-x 1 thebest bestx  141 May 29 17:48 __init__.pyc
-rwxr-xr-x 1 thebest bestx  546 May 25 12:25 manage.py
drwxr-xr-x 2 thebest bestx 4096 May 30 13:55 media
drwxr-xr-x 2 thebest bestx 4096 Jun  6 15:30 xapp
drwxr-xr-x 2 thebest bestx 4096 Jun  6 15:30 xapp
drwxr-xr-x 2 thebest bestx 4096 Jun  6 15:30 SCRIPTS
-rwxr-xr-x 1 thebest bestx 4096 Jun  6 15:34 ._settings.py
-rwxr-xr-x 1 thebest bestx 3169 Jun  6 15:34 settings.py
-rwxr-xr-x 1 root    root  2343 Jun  6 15:35 settings.pyc
drwxr-xr-x 6 thebest bestx 4096 Jun  6 10:26 templates
-rwxr-xr-x 1 thebest bestx 4382 Jun  6 15:32 ._urls.py
-rwxr-xr-x 1 thebest bestx 2758 Jun  6 14:13 urls.py
-rwxr-xr-x 1 thebest bestx 5259 Jun  6 14:14 urls.pyc
[/code]


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to