Commits

Roma Sokolov committed fffc03d

rewrite core

  • Participants
  • Parent commits d494d73

Comments (0)

Files changed (1)

 # -*- coding:utf-8 -*-
 
 from flask import Flask
-app = Flask(__name__)
+
+import config
+
+
+app = Flask(config.NAME, config.STATIC_PATH)
+app.config.from_object(config)
+
 
 @app.route("/")
 def hello():
     return "Hello World!"
 
-if __name__ == "__main__":
-    app.run()
+
+if __name__ == '__main__':
+    app.run(config.HOST, config.PORT, debug=True)