From 319059b35df236fa6346f2ffa174cfe7c6492cdf Mon Sep 17 00:00:00 2001 From: hopeaktian Date: Mon, 10 Dec 2018 23:10:32 +0800 Subject: [PATCH] add tag . --- app/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 5c76431..5b42a01 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -10,6 +10,7 @@ from config import DevConfig from app.models import db, User, Comment, Post, Tag, tags from controllers.post import post +from controllers.writer import writer app = Flask(__name__) app.config.from_object(DevConfig) @@ -40,6 +41,7 @@ def index(): app.register_blueprint(post) +app.register_blueprint(writer) if __name__ == '__main__': - app.run(host='localhost', port=80) + app.run(host='192.168.3.5', port=80)