doc_pagure.wsgi 754 B

1234567891011121314151617181920212223
  1. #-*- coding: utf-8 -*-
  2. # The three lines below are required to run on EL6 as EL6 has
  3. # two possible version of python-sqlalchemy and python-jinja2
  4. # These lines make sure the application uses the correct version.
  5. import __main__
  6. __main__.__requires__ = ['SQLAlchemy >= 0.8', 'jinja2 >= 2.4']
  7. import pkg_resources
  8. # Set the environment variable pointing to the configuration file
  9. import os
  10. os.environ['PAGURE_CONFIG'] = '/etc/pagure/pagure.cfg'
  11. # The following is only needed if you did not install pagure
  12. # as a python module (for example if you run it from a git clone).
  13. #import sys
  14. #sys.path.insert(0, '/path/to/pagure/')
  15. # The most import line to make the wsgi working
  16. from pagure.docs_server import APP as application
  17. #application.debug = True