Deploying django app on Apache mod_python

前端 未结 5 2076
故里飘歌
故里飘歌 2021-02-11 07:51

I\'ve finished making a site in django called \'kazbah\', and I\'m trying to deploy.

All the code for the kazbah site is in /home/git/DjangoProjects/kazbah and my httpd.

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-11 08:27

    For a project resting under /var/www/bbb (called, "bbb"), I have the following set in the configuration file:

    
            SetHandler python-program
            PythonHandler django.core.handlers.modpython
            SetEnv DJANGO_SETTINGS_MODULE bbb.settings
            PythonPath "['/var/www/', '/var/www/bbb/'] + sys.path"
            PythonDebug On
    
    

提交回复
热议问题