Commits

cuprum committed 4b655dc

fixed local_config import

Comments (0)

Files changed (2)

 NAME = 'selfnote'
 
 DATABASE_CONFIG = {}
+
+DEBUG = False
 #!/usr/local/bin/python
 # -*- coding:utf-8 -*-
 
+
 from flask import Flask
 from flask import request
 from flask import render_template
 
 from utils import split_tags
 
-import config
 try:
-    import local_config
+    import local_config as config
 except ImportError:
-    local_config = None
+    import config
 
 
 app = Flask(config.NAME, config.STATIC_PATH)
 app.config.from_object(config)
-if local_config is not None:
-    app.config.from_object(local_config)
-
 
 @app.route("/")
 def hello():
 
 
 if __name__ == '__main__':
-    app.run(config.HOST, config.PORT, debug=True)
+    app.run(config.HOST, config.PORT, debug=config.DEBUG)