feat: article page
This commit is contained in:
@@ -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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user