Commit ae3e85cc authored by Kevin Sibug's avatar Kevin Sibug

Edited the urls to include the views and additional paths

parent de41f439
from django.contrib import admin
from django.urls import path
# from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from . import views
urlpatterns = [
path('', views.HeroesView.as_view(), name='heroes_view'),
path('heroes/', views.HeroesView.as_view(), name='heroes_view'),
path('hero/cloud/', views.CloudView.as_view(), name='cloud_view'),
path('hero/sunflowey/', views.SunfloweyView.as_view(), name='sunflowey_view'),
path('hero/jester/', views.JesterView.as_view(), name='jester_view'),
]
# urlpatterns += staticfiles_urlpatterns()
\ No newline at end of file
......@@ -14,8 +14,13 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('heroes.urls')),
]
\ No newline at end of file
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