-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from agiliq/chapter_5_wiki
final commit for chapter5
- Loading branch information
Showing
66 changed files
with
239 additions
and
1,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from django.urls import re_path, include | ||
from django.urls import path, include | ||
from .views import add_article, edit_article, article_history, ArticleList, ArticleDetail | ||
|
||
urlpatterns = [ | ||
re_path(r'^$', ArticleList.as_view(), name='wiki_article_index'), | ||
re_path(r'^article/(?P<slug>[-\w]+)$',ArticleDetail.as_view(),name='wiki_article_detail'), | ||
re_path(r'^history/(?P<slug>[-\w]+)$', article_history, name='wiki_article_history'), | ||
re_path(r'^add/article$', add_article, name='wiki_article_add'), | ||
re_path(r'^edit/article/(?P<slug>[-\w]+)$', edit_article, name='wiki_article_edit'), | ||
path('', ArticleList.as_view(), name='wiki_article_index'), | ||
path('article/<str:slug>',ArticleDetail.as_view(),name='wiki_article_detail'), | ||
path('history/<str:slug>', article_history, name='wiki_article_history'), | ||
path('add/article', add_article, name='wiki_article_add'), | ||
path('edit/article/<str:slug>', edit_article, name='wiki_article_edit'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.