Commit 91514e4e authored by Santino Campos's avatar Santino Campos

Add URL for view the redirects to /heroes

parent faecbea6
...@@ -5,8 +5,10 @@ from .views import homepage ...@@ -5,8 +5,10 @@ from .views import homepage
from .views import detail_sunflowey from .views import detail_sunflowey
from .views import detail_jester from .views import detail_jester
from .views import detail_cloud from .views import detail_cloud
from .views import redirect_view
urlpatterns = [ urlpatterns = [
url(r'^$', redirect_view, name='redirect'),
url(r'^heroes', homepage, name='homepage'), url(r'^heroes', homepage, name='homepage'),
url(r'^hero/sunflowey', detail_sunflowey, name='detail_sunflowey'), url(r'^hero/sunflowey', detail_sunflowey, name='detail_sunflowey'),
url(r'^hero/jester', detail_jester, name='detail_jester'), url(r'^hero/jester', detail_jester, name='detail_jester'),
......
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