Commit bf6a79f7 authored by Santino Campos's avatar Santino Campos

Add view that redirects to /heroes

parent 91514e4e
from django.shortcuts import render from django.shortcuts import render, redirect
def homepage(request): def homepage(request):
...@@ -12,3 +12,6 @@ def detail_jester(request): ...@@ -12,3 +12,6 @@ def detail_jester(request):
def detail_cloud(request): def detail_cloud(request):
return render(request, 'detail_cloud.html') return render(request, 'detail_cloud.html')
def redirect_view(request):
return redirect('/heroes')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment