feat: article page

This commit is contained in:
root
2025-10-06 21:32:59 +03:00
parent e09da0d5a9
commit b11161bce3
5 changed files with 67 additions and 8 deletions

View File

@@ -15,10 +15,11 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, re_path
from articles import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.archive),
re_path(r'^article/(?P<article_id>\d+)$', views.get_article, name='get_article'),
]