Guest User

Untitled

a guest
Jan 24th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. from django.contrib import admin
  2. from django.urls import path
  3. from . import views
  4.  
  5. app_name = 'stories'
  6.  
  7. urlpatterns = [
  8. path('', views.IndexView.as_view(), name='index'),
  9. path('<pk>', views.DetailView.as_view(), name='detail'),
  10. # path('<story_id>/ratings', views.rating, name='rating'),
  11. path('add', views.CreateStory.as_view(), name='add-story'),
  12. ]
  13.  
  14. <li><a href="{% url 'stories:add-story' %}">Click me</a></li>
Add Comment
Please, Sign In to add comment