You're really sure django's permissions are set correctly? What does
ls -l of the django folder inside the site-packages say?

Tim ^,^




On Thu, Nov 6, 2008 at 11:05 PM, Christian Kortenhorst <[EMAIL PROTECTED]> 
wrote:
> Is there any way that i can find out what modpython and user www-data are
> doing with my configuration?
>
> Thank you
>
> On 11/6/08, Christian Kortenhorst <[EMAIL PROTECTED]> wrote:
>>
>> Thank you a lot more all this, got it working on my own server but not in
>> shared server. Seams like there is something wrong with my python path.
>>
>> My setup:
>>
>> <VirtualHost *>
>>    ServerName django.namit.org
>>    DocumentRoot /var/www/
>>    LogLevel warn
>>
>>    <Directory "/var/www">
>>            Options -Indexes
>>    </Directory>
>>
>> <Location "/">
>>     SetHandler python-program
>>     PythonHandler django.core.handlers.modpython
>>     SetEnv DJANGO_SETTINGS_MODULE myproject_site.settings
>>     PythonOption django.root /myproject_site
>>     PythonDebug On
>>     PythonPath "['/home'] + sys.path"
>> </Location>
>>
>> </VirtualHost>
>>
>> ls /home
>> drwxr-xr-x 20 namit         www-data 4.0K 2008-11-05 16:22 django
>> drwxr-xr-x  7 namit         www-data 4.0K 2008-11-05 22:03 myproject_site
>>
>> mine works
>>
>> Hosting company:
>> drwxr-xr-x 20 klacey www-data 4096 2008-11-06 11:48 django
>> drwxr-xr-x  6 klacey www-data 4096 2008-11-05 19:56 myproject_site
>>
>> <VirtualHost *>
>>     ServerAdmin [EMAIL PROTECTED]
>>     ServerName  modulecatalogue.hosting
>>     # ServerAlias
>>
>>     DocumentRoot /var/www/modulecatalogue.hosting/docs
>>
>>     ErrorLog /var/www/modulecatalogue.hosting/logs/error.log
>>
>>     # Possible values include: debug, info, notice, warn, error, crit,
>>     # alert, emerg.
>>     LogLevel warn
>>
>>     Customlog /var/www/modulecatalogue.hosting/logs/access.log combined
>>
>> <Location "/">
>>     SetHandler python-program
>>     PythonHandler django.core.handlers.modpython
>>     SetEnv DJANGO_SETTINGS_MODULE myproject_site.settings
>>     PythonOption django.root /myproject_site
>>     PythonDebug On
>>     PythonPath "['/home/klacey/modulecatalogue.hosting/docs'] + sys.path"
>> </Location>
>>
>> </VirtualHost>
>>
>> on hosting company i get
>> Mod_python error: "PythonHandler django.core.handlers.modpython"
>> ...
>> ImportError: No module named django
>>
>> Thank you
>>
>> On 11/5/08, Aoife Hughes <[EMAIL PROTECTED]> wrote:
>>>
>>> If you're still having problems after all they've said, check that
>>> your webserver isn't running in a chroot. If it is, it may not see
>>> /home/mycode, and may have to be relocated inside the chroot.
>>>
>>> Hope this helps,
>>> Aoife
>>>
>>> 2008/11/5 Christian Kortenhorst <[EMAIL PROTECTED]>:
>>>
>>> > So been wrecking my head about installing django with mod_python on a
>>> > server
>>> > that i have limited root access to (by this i mean i have to ask
>>> > hosting
>>> > company to do some stuff and then they might say no).
>>> >
>>> > So have installed python on my own personal box debian etch, django
>>> > version
>>> > 0.97 and have it up and running when i run my project
>>> > python manage.py runserver 192.168.1.4:8080
>>> >
>>> > directory structure:
>>> > /home/mycode/
>>> > |-- __init__.py
>>> > |-- __init__.pyc
>>> > |-- coursedb
>>> > |-- etc..
>>> >
>>> > /home/django/
>>> > |-- __init__.py
>>> > |-- __init__.pyc
>>> > |-- bin
>>> > |-- conf
>>> > |-- core
>>> > |-- etc....
>>> >
>>> > But when i configure apache
>>> >
>>> > <Location "/coursedb">
>>> >     SetHandler python-program
>>> >     PythonHandler django.core.handlers.modpython
>>> >     SetEnv DJANGO_SETTINGS_MODULE coursedb.settings
>>> >     PythonDebug On
>>> >     PythonPath "['/home/mycode'] + sys.path"
>>> > </Location>
>>> >
>>> > and then go to visit on it in lynx it just shows up
>>> >
>>> > Mod_python error: "PythonHandler django.core.handlers.modpython"
>>> > .....
>>> > ImportError: Could not import settings 'coursedb.settings' (Is it on
>>> > sys.path? Does it have syntax
>>> > errors?): No module named settings
>>> >
>>> > the django svn install is in /home/django and I put a ln to
>>> > /usr/local/bin
>>> > so could run django-admin anywhere.
>>> >
>>> > Can anyone help me?
>>> > n.b: i can change a lot on my own server but when i move to shared
>>> > hosting
>>> > server it will be a lot harder to configure, so just wanted all the
>>> > code for
>>> > django and my app to be in my home directory and get apache to run it
>>> > througt mod python. but i seam to be doing something wrong.
>>> >
>>> > --
>>> > Christian Kortenhorst
>>> > mob: +353-(0)87-6183349
>>> > home: +353-(0)1-4966287
>>> >
>>> > >
>>> >
>>>
>>>
>>
>>
>>
>> --
>> Christian Kortenhorst
>> mob: +353-(0)87-6183349
>> home: +353-(0)1-4966287
>
>
> --
> Christian Kortenhorst
> mob: +353-(0)87-6183349
> home: +353-(0)1-4966287
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Python Ireland" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to