initial functionality and styling pass
This commit is contained in:
+6
-1
@@ -16,7 +16,7 @@ def create_app(config_class='config.Config'):
|
||||
db.init_app(app)
|
||||
migrate.init_app(app, db)
|
||||
login_manager.init_app(app)
|
||||
login_manager.login_view = 'auth.login' # IMPORTANT: now uses auth Blueprint
|
||||
login_manager.login_view = 'auth.login'
|
||||
|
||||
from app.main import main
|
||||
from app.auth import auth
|
||||
@@ -24,4 +24,9 @@ def create_app(config_class='config.Config'):
|
||||
app.register_blueprint(main)
|
||||
app.register_blueprint(auth)
|
||||
|
||||
@app.template_filter('datetimeformat')
|
||||
def datetimeformat(value, format="%Y-%m-%d"):
|
||||
return value.strftime(format) if value else ""
|
||||
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user