mirror of
https://github.com/django/django.git
synced 2025-03-12 18:30:48 +00:00
[1.6.x] Fixed #21663 -- Added missing WSGIPythonPath in mod_wsgi config.
Thanks carrie.hazelton at altamiracorp.com for the report. Backport of e82e7ae1e8 from master
This commit is contained in:
parent
54b04cc8e6
commit
847d2ab5b3
@ -38,6 +38,7 @@ only authenticated users to be able to view:
|
|||||||
.. code-block:: apache
|
.. code-block:: apache
|
||||||
|
|
||||||
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
|
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
|
||||||
|
WSGIPythonPath /path/to/mysite.com
|
||||||
|
|
||||||
WSGIProcessGroup %{GLOBAL}
|
WSGIProcessGroup %{GLOBAL}
|
||||||
WSGIApplicationGroup django
|
WSGIApplicationGroup django
|
||||||
@ -76,7 +77,6 @@ function:
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
|
|
||||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user