Refactor (settings database, etc...)

This commit is contained in:
Jan Broer
2015-08-02 21:23:24 +02:00
parent d514722fa7
commit aef608aa10
8 changed files with 164 additions and 42 deletions

18
wsgi.py Normal file
View File

@@ -0,0 +1,18 @@
import os
import sys
base_path = os.path.dirname(os.path.abspath(__file__))
# Insert local directories into path
sys.path.append(os.path.join(base_path, 'lib'))
from cps import web
from cps import config
global title_sort
def title_sort(title):
return title
if __name__ == "__main__":
web.app.run(host="0.0.0.0",port=config.PORT, debug=True)