fixes #1413
This commit is contained in:
@@ -7,22 +7,16 @@ Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
|
||||
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
|
||||
This is a WSGI handler for Apache
|
||||
Requires apache+mod_wsgi.
|
||||
|
||||
In httpd.conf put something like:
|
||||
|
||||
LoadModule wsgi_module modules/mod_wsgi.so
|
||||
WSGIScriptAlias / /path/to/wsgihandler.py
|
||||
|
||||
This is a WSGI handler
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# change these parameters as required
|
||||
LOGGING = False
|
||||
SOFTCRON = False
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
path = os.path.dirname(os.path.abspath(__file__))
|
||||
os.chdir(path)
|
||||
@@ -32,8 +26,6 @@ if not os.path.isdir('applications'):
|
||||
|
||||
sys.path = [path] + [p for p in sys.path if not p == path]
|
||||
|
||||
sys.stdout = sys.stderr
|
||||
|
||||
import gluon.main
|
||||
|
||||
if LOGGING:
|
||||
|
||||
Reference in New Issue
Block a user