from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^about', views.about, name='about'),
    url(r'^test', views.test, name='test'),
    
    url(r'^champions/$', views.champions),
    url(r'^champions/.*', views.champion),
    url(r'^champions/*', views.champions),
    
    url(r'^items/$', views.items),
    url(r'^items/.*', views.item),
    url(r'^items/*', views.items),

    url(r'^players/$', views.players),
    url(r'^players/.*', views.balls),
    url(r'^players/*', views.players),

    url(r'^.*/$', views.index)
]

from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^about', views.about, name='about'),
    url(r'^test', views.test, name='test'),
    
    url(r'^champions/$', views.champions),
    url(r'^champions/.*', views.champion),
    url(r'^champions/*', views.champions),
    
    url(r'^items/$', views.items),
    url(r'^items/.*', views.item),
    url(r'^items/*', views.items),

    url(r'^players/$', views.players),
    url(r'^players/.*', views.player),
    url(r'^players/*', views.players),

    url(r'^.*/$', views.index)
]

fix small bug in dynamic urls.py