Commits

Roma Sokolov committed d2d2fd8

add posibility for local_config

Comments (0)

Files changed (1)

+#!/usr/local/bin/python
 # -*- coding:utf-8 -*-
 
 from flask import Flask
+from flask import request
+
 
 import config
+try:
+    import local_config
+except ImportError:
+    local_config = None
 
 
 app = Flask(config.NAME, config.STATIC_PATH)
 app.config.from_object(config)
+if local_config is not None:
+    app.config.from_object(local_config) # update with local settings
 
 
 @app.route("/")
 def hello():
+    ''' Main page '''
     return "Hello World!"