added login cookie, added change pwd screen
This commit is contained in:
@@ -6,6 +6,7 @@ from auth import auth_bp
|
||||
from admin import admin_bp
|
||||
from lists import lists_bp
|
||||
from items import items_bp
|
||||
from api import api_bp
|
||||
|
||||
login_manager = LoginManager()
|
||||
|
||||
@@ -22,6 +23,7 @@ def create_app():
|
||||
app.register_blueprint(admin_bp)
|
||||
app.register_blueprint(lists_bp)
|
||||
app.register_blueprint(items_bp)
|
||||
app.register_blueprint(api_bp)
|
||||
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
@@ -36,4 +38,4 @@ def create_app():
|
||||
if __name__ == "__main__":
|
||||
my_app = create_app()
|
||||
# if needed - initialize data
|
||||
my_app.run(debug=True, host='0.0.0.0', port=5001)
|
||||
my_app.run(debug=True, host='127.0.0.1', port=5001)
|
||||
|
||||
Reference in New Issue
Block a user