Small config rework. Add .gitignore

This commit is contained in:
jar3b
2016-03-12 19:54:24 +03:00
parent b0914d58f5
commit 19d80f5811
4 changed files with 29 additions and 20 deletions

View File

@@ -1,25 +1,15 @@
# -*- coding: utf-8 -*-
from aore import phias, config
from bottle import run
from aore import phias
# Config section
# config.sphinx_conf.listen = "192.168.0.37:9312"
# config.sphinx_conf.var_dir = "C:\\Sphinx"
#
# config.db_conf.database = "pyfias"
# config.db_conf.host = "192.168.0.37"
# config.db_conf.port = 5432
# config.db_conf.user = "postgres"
# config.db_conf.password = "intercon"
#
# config.unrar_config.path = "C:\\Program Files (x86)\\WinRAR\\unrar.exe"
# config.folders.temp = "E:\\!TEMP"
#
# config.basic.logging = True
# Load config
try:
from config import *
except ImportError:
assert "No config"
# Define main app
application = phias.App('test-config-fname')
application = phias.App()
# Run bottle WSGI server if no external
if __name__ == '__main__':