Friday, 15 January 2010

setup Python/Django on subdirectory using apache in windows -



setup Python/Django on subdirectory using apache in windows -

i trying setup django site on suburl www.example.com/django , apache settings follows :

<location "/"> sethandler python-program pythonpath "[r'path packages '] + sys.path" pythonhandler django.core.handlers.modpython setenv django_settings_module settings pythondebug on </location>

what parameter have add together here create accessible @ www.example.com/django instead of www.example.com

need add together pythonoption django.root /django in apache settings finish code :

<location "/django/"> sethandler python-program pythonpath "[r'path packages '] + sys.path" pythonhandler django.core.handlers.modpython setenv django_settings_module settings pythondebug on pythonoption django.root /django </location>

python django apache

No comments:

Post a Comment