I'm trying to deploy my first django app (oh no! :-D). I have a user
account on a server with Apache2. That is: I don't have root access
and I don't have access to apache2 config files. Our server has
UserDir enabled, so http://my.server.url/~my_home/ maps to $HOME/
public_html. According to this:
/etc/apache2/mods-enabled$ ls -l | grep python
lrwxrwxrwx 1 root root 29 Feb 15  2009 python.load -> ../mods-
available/python.load
I'd say we do have mod_python enabled. So, I've put my mod_python
config data into $HOME/public_html/.htaccess:

<Location "mysite">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE mysite.settings
    PythonDebug Off
    PythonPath "['/home/users/n/nick/code/mysite', '/var/lib/python-
support/python2.5/django'] + sys.path"
</Location>

That doesn't work (throws 500 Internal Server Error). So I tried to
tweak this a bit and when it didn't work I googled and haven't find
any usable info. Except this: http://code.djangoproject.com/ticket/2255
where a guy says: "[...] requiring admin access to httpd.conf in order
to use Django with mod_python is fine by me. "

So, can I even deploy django without admin access to config files?
Please don't say I can't. Please. Thanks.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to