projects
/
styx.blog
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Get a basic blog up and running
[styx.blog]
/
core
/
urls.py
diff --git a/core/urls.py
b/core/urls.py
new file mode 100644
(file)
index 0000000..
4addd71
--- /dev/null
+++ b/
core/urls.py
@@ -0,0
+1,8
@@
+from django.urls import path
+
+from . import views
+
+urlpatterns = [
+ path('', views.PostListView.as_view(), name='post-list'),
+ path('p/<slug:slug>/', views.PostDetailView.as_view(), name='post-detail'),
+]