~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to django/conf/project_template/project_name/wsgi.py

  • Committer: Package Import Robot
  • Author(s): Luke Faraone, Jakub Wilk, Luke Faraone
  • Date: 2013-05-09 15:10:47 UTC
  • mfrom: (1.1.21) (4.4.27 sid)
  • Revision ID: package-import@ubuntu.com-20130509151047-aqv8d71oj9wvcv8c
Tags: 1.5.1-2
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Luke Faraone ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
"""
16
16
import os
17
17
 
 
18
# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
 
19
# if running multiple sites in the same mod_wsgi process. To fix this, use
 
20
# mod_wsgi daemon mode with each site in its own daemon process, or use
 
21
# os.environ["DJANGO_SETTINGS_MODULE"] = "{{ project_name }}.settings"
18
22
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")
19
23
 
20
24
# This application object is used by any WSGI server configured to use this