mirror of
https://github.com/shouptech/humulus.git
synced 2026-02-03 14:59:43 +00:00
Redirect home to recipes index
This commit is contained in:
parent
1b248f9ac4
commit
17282af304
2 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from flask import Blueprint, render_template
|
||||
from flask import Blueprint, redirect, url_for
|
||||
|
||||
bp = Blueprint('home', __name__)
|
||||
|
||||
|
|
@ -22,4 +22,4 @@ bp = Blueprint('home', __name__)
|
|||
@bp.route('/')
|
||||
def index():
|
||||
"""Renders the homepage template"""
|
||||
return render_template('index.html')
|
||||
return redirect(url_for('recipes.index'))
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@
|
|||
|
||||
def test_home(client):
|
||||
response = client.get('/')
|
||||
assert b'Home' in response.data
|
||||
assert response.status_code == 302
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue