diff --git a/app/app.py b/app/app.py index 6c38ba5..7ac4e0b 100644 --- a/app/app.py +++ b/app/app.py @@ -21,7 +21,7 @@ migrate = Migrate(app, db, compare_type=True, render_as_batch=True) login_manager = LoginManager(app) -login_manager.login_view = 'login' +login_manager.login_view = 'main.login' babel = Babel(app) diff --git a/app/templates/macros.html b/app/templates/macros.html index bbf7242..79cfe23 100644 --- a/app/templates/macros.html +++ b/app/templates/macros.html @@ -16,5 +16,5 @@ {% endmacro %} {% macro recipe_url(recipe) %} -{{ url_for('recipe', id=recipe.id, name=recipe.name|slugify) }} +{{ url_for('main.recipe', id=recipe.id, name=recipe.name|slugify) }} {% endmacro %}