# -*- coding: utf-8 -*-
from url_shortener import app, event_handlers, views

__title__ = 'url-shortener'
__version__ = '0.9.0.dev1'
__author__ = 'Piotr Rusin'
__email__ = "piotr.rusin88@gmail.com"
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2016 Piotr Rusin'


if not app.debug:
    import logging
    from logging.handlers import TimedRotatingFileHandler
    file_handler = TimedRotatingFileHandler(app.config['LOG_FILE'])
    file_handler.setLevel(logging.WARNING)
    app.logger.addHandler(file_handler)

app.run()

@@ -17,16 +17,369 @@
 f-8 -*-%0A
+'''%0Aurl-shortener%0A==============%0A%0AAn application for generating and storing shorter aliases for%0Arequested urls. Uses %60spam-lists%60__ to prevent generating a short url%0Afor an address recognized as spam, or to warn a user a pre-existing%0Ashort alias has a target that has been later recognized as spam.%0A%0A.. __: https://github.com/piotr-rusin/spam-lists%0A'''%0A
 from url

Add docstring to run_server module