Opened 7 years ago

Closed 6 years ago

#17352 closed Uncategorized (fixed)

similar but contradictory content, same headlines, slightly different URLs

Reported by: rory.cawley@… Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords: documenation wsgi
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Please take a look the the following 2 URLs:

It's almost the same information but there are significant enough differences. Not sure why there are two documents, one of them is an old one that needs to be cleaned up.

Basic configuration
Once you’ve got mod_wsgi installed and activated, edit your Apache server’s httpd.conf file and add:

WSGIScriptAlias / /path/to/
WSGIPythonPath /path/to/

<Directory /path/to/>
Order deny,allow
Allow from all


Basic configuration
Once you’ve got mod_wsgi installed and activated, edit your httpd.conf file and add:

WSGIScriptAlias / /path/to/mysite/apache/django.wsgi
The first bit above is the url you want to be serving your application at (/ indicates the root url), and the second is the location of a "WSGI file" -- see below -- on your system, usually inside of your project. This tells Apache to serve any request below the given URL using the WSGI application defined by that file.

Next we'll need to actually create this WSGI application, so create the file mentioned in the second part of WSGIScriptAlias and add:

import os
import sys

os.environDJANGO_SETTINGS_MODULE? = 'mysite.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

Change History (2)

comment:1 Changed 7 years ago by Ramiro Morales

Triage Stage: UnreviewedAccepted

the howto/deployment/modwsgi/ document is deprecated as can be seen in the SVN repository or in a local checkout of Django develoment code.

This happens because the scripts that perform deployment for the site doesn't clean the area where the rendered HTML docs will be copied before doing its work.

Last edited 7 years ago by Ramiro Morales (previous) (diff)

comment:2 Changed 6 years ago by Tim Graham

Resolution: fixed
Status: newclosed

Looks like the outdated page has been removed.

Note: See TracTickets for help on using tickets.
Back to Top