Deploying django app on Apache mod_python

前端 未结 5 2153
名媛妹妹
名媛妹妹 2021-02-11 07:55

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:53

    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
    
    

提交回复
热议问题