from django.urls import path from django.views.generic import TemplateView from wiki.views import PageListView, PageCreateView, PageDetailView urlpatterns = [ path('', PageListView.as_view(), name='wiki-list-page'), path('create/', PageCreateView.as_view(), name='wiki-create-page'), path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page'), ]
from django.urls import path from wiki.views import PageListView, PageDetailView, PageCreateView urlpatterns = [ path('', PageListView.as_view(), name='wiki-list-page'), path('newpage/', PageCreateView.as_view(), name="page-form"), path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page'), ]
from django.urls import path, include from wiki.views import PageListView, PageDetailView, PageCreateView from accounts.views import SignupView urlpatterns = [ path('', PageListView.as_view(), name='wiki-list-page'), path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page'), path('accounts/', include('django.contrib.auth.urls')), path('newpage', PageCreateView.as_view(), name='create') ]
from django.urls import path from wiki.views import PageListView, PageDetailView, PageCreateView urlpatterns = [ path('', PageListView.as_view(), name='wiki-list-page'), path('create/', PageCreateView.as_view(), name='new-page'), path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page'), ]
from django.urls import path from wiki.views import PageListView, PageDetailView, PageCreateView from . import views urlpatterns = [ path('', PageListView.as_view(), name='wiki-list-page'), # path('new/', views.newPage, name='newPage'), path('new/', PageCreateView.as_view(), name='newPage'), path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page'), ]
from django.urls import path from wiki.views import PageListView, PageDetailView, PageCreateView urlpatterns = [ path('', PageListView.as_view(), name='wiki-list-page'), path('new-page/', PageCreateView.as_view(), name='new-entry-page'), path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page'), ]
from django.urls import path from wiki.views import PageListView, PageCreateView, PageDetailView urlpatterns = [ path('', PageListView.as_view(), name='wiki-list-page'), path('new_page/', PageCreateView.as_view(), name='wiki-new-page'), path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page') ]
from django.urls import path from wiki.views import PageListView, PageCreateView, PageDetailView urlpatterns = [ path('', PageListView.as_view(), name='wiki-list-page'), path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page'), path('create-post', PageCreateView.as_view(), name='page-create') ]
from django.urls import path from wiki.views import PageListView, PageDetailView, PageCreateView urlpatterns = [ path('', PageListView.as_view(), name='wiki-list-page'), path('new/', PageCreateView.as_view(), name="wiki-page-create"), path('<str:slug>/', PageDetailView.as_view(), name='wiki-details-page') ]