Flatisfy is your new companion to ease your search of a new housing :)

wsgi.py 657B

12345678910111213141516171819202122232425262728
  1. # coding: utf-8
  2. """
  3. Expose a WSGI-compatible application to serve with a webserver.
  4. """
  5. from __future__ import absolute_import, print_function, unicode_literals
  6. import logging
  7. import os
  8. import sys
  9. import flatisfy.config
  10. from flatisfy.web import app as web_app
  11. class Args:
  12. config = os.path.join(os.path.dirname(os.path.realpath(__file__)), "config/config.json")
  13. LOGGER = logging.getLogger("flatisfy")
  14. CONFIG = flatisfy.config.load_config(Args())
  15. if CONFIG is None:
  16. LOGGER.error("Invalid configuration. Exiting. Run init-config before if this is the first time you run Flatisfy.")
  17. sys.exit(1)
  18. application = app = web_app.get_app(CONFIG)