mirror of
https://github.com/rmontanana/microblog.git
synced 2025-08-16 15:55:51 +00:00
Chapter 12
This commit is contained in:
@@ -7,6 +7,7 @@ from flask_sqlalchemy import SQLAlchemy
|
||||
from flask_migrate import Migrate
|
||||
from flask_login import LoginManager
|
||||
from flask_bootstrap import Bootstrap
|
||||
from flask_moment import Moment
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(Config)
|
||||
@@ -20,6 +21,7 @@ login = LoginManager(app)
|
||||
# sets de default login view
|
||||
login.login_view = "login"
|
||||
bootstrap = Bootstrap(app)
|
||||
moment = Moment(app)
|
||||
|
||||
if not app.debug:
|
||||
if app.config["MAIL_SERVER"]:
|
||||
|
Reference in New Issue
Block a user