On Sep 19, 1:40 pm, "n00m" <[EMAIL PROTECTED]> wrote:
> You need no at all to ask the hoster to install Django
> on his machine.
> Apache (etc) + installed mod_python is quite enough to
> get your django app running.
>
> The django package (and e.g. PIL) can be copied to there
> along with your django web dirs, as if it's a part of your
> web site/app.
>
> Example:
>
> htdocs/
>     my_dirs/
>         django/
>             ...
>         my_django_app/
>             ...
>             settings.py
>             urls.py
>         PIL/
>             ...
>         ...
>
> LoadModule python_module modules/mod_python.so
> <Location />
>     SetHandler mod_python
>     PythonPath "['htdocs/my_dirs'] + sys.path"
>     PythonHandler django.core.handlers.modpython
>     SetEnv DJANGO_SETTINGS_MODULE my_django_app.settings
>     PythonDebug On
> </Location>

That's great that you got it working, but that isn't always the case.
Some hosts will not allow you to edit/have your own .htaccess files or
edit the main httpd.conf file. In addition, I found that I needed a
PYTHON_EGG_CACHE, a directory where apache could write to to extract
eggs. Some hosts aren't going to let you have shell access to chmod a
directory to allow this. Yes it can be done but you may have to work
with your host or purchase your own dedicated hosting.
--~--~---------~--~----~------------~-------~--~----~
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