]> git.openstreetmap.org Git - osqa.git/commitdiff
Added some documentation about how to properly set the DJANGO_SETTINGS_MODULE.
authorclaycarpenter <claycarpenter@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 23 Nov 2010 22:39:56 +0000 (22:39 +0000)
committerclaycarpenter <claycarpenter@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 23 Nov 2010 22:39:56 +0000 (22:39 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@618 0cfe37f9-358a-4d5e-be75-b63607b5c754

osqa.wsgi.dist

index c3a269da0a91aafa27f3795d93c6477cf45ab0a7..70c0da874023f2cee532916ab63dcbd59150e517 100644 (file)
@@ -2,6 +2,10 @@ import os
 import sys
 sys.path.append('/path/to_dir_above')
 sys.path.append('/path/to_dir_above/osqa')
+# The first part of this module name should be identical to the directory name
+# of the OSQA source.  For instance, if the full path to OSQA is
+# /home/osqa/osqa-server, then the DJANGO_SETTINGS_MODULE should have a value
+# of 'osqa-server.settings'.
 os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings'
 import django.core.handlers.wsgi
 application = django.core.handlers.wsgi.WSGIHandler()