Opened 13 years ago

Closed 12 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

Description

Please take a look the the following 2 URLs:
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/
https://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/

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.

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

WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com

<Directory /path/to/mysite.com/mysite>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>

vs

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 by Ramiro Morales, 13 years ago

Triage Stage: UnreviewedAccepted

the howto/deployment/modwsgi/ document is deprecated as can be seen [in the SVN repository https://code.djangoproject.com/browser/django/trunk/docs/howto/deployment].

This happensbecause the scripts that perform deployment for the docs.djangoproject.com site doesn't clean the work area before doing its work.

Version 0, edited 13 years ago by Ramiro Morales (next)

comment:2 by Tim Graham, 12 years ago

Resolution: fixed
Status: newclosed

Looks like the outdated page has been removed.

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