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
@@ -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'),
+]