urls.py 174 B

123456789
  1. import views
  2. from django.conf.urls import url
  3. urlpatterns = [
  4. url(r'^$', views.index, name='index'),
  5. url(r'^post/(?P<token>\d+)/$', views.detail, name='detail'),
  6. ]