, , , , DocumentRoot .
, WSGI script , Django, , Apache, Apache. , Alias, URL- , Apache.
, :
http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
and have the WSGI script file in your own folder, which has no source code at all, or have the WSGI script file in a completely different directory outside the Django project, which again contains only script files of other files that Apache will technically be allowed to serve.
The basic rule does not paste the source code (except for the WSGI script) into any directory for which:
Allow from all
was defined using the Apache configuration.
Of course, because of this, it is partially assumed that you are using mod_wsgi. :-)
source
share