Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 1a7fc33e7154be9f788ea38f042067e635fc5ff2
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Feb 15 21:43:35 2013 +0100
Comment out all the information in the wsgi, it's a sample file after all
This file will be installed by the spec in the fedocal python module directory
---------------------------------------------------------------
fedocal.wsgi | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/fedocal.wsgi b/fedocal.wsgi
index 1262b5d..41b3f01 100644
--- a/fedocal.wsgi
+++ b/fedocal.wsgi
@@ -3,17 +3,19 @@
# The three lines below are required to run on EL6 as EL6 has
# two possible version of python-sqlalchemy and python-jinja2
# These lines make sure the application uses the correct version.
-import __main__
-__main__.__requires__ = ['SQLAlchemy >= 0.7', 'jinja2 >= 2.4']
-import pkg_resources
+#import __main__
+#__main__.__requires__ = ['SQLAlchemy >= 0.7', 'jinja2 >= 2.4']
+#import pkg_resources
-import os
+#import os
## Set the environment variable pointing to the configuration file
-os.environ['FEDOCAL_CONFIG'] = '/path/to/your/own/fedocal.cfg'
+#os.environ['FEDOCAL_CONFIG'] = '/etc/fedocal/fedocal.cfg'
## The following is only needed if you did not install fedocal
## as a python module (for example if you run it from a git clone).
#import sys
#sys.path.insert(0, '/path/to/fedocal/')
-from fedocal import APP as application
+
+## The most import line to make the wsgi working
+#from fedocal import APP as application