django app moved to subfolder

This commit is contained in:
Arthur 2025-02-24 18:55:03 +01:00
commit bb2d2b7124
75 changed files with 27 additions and 0 deletions

View file

@ -1,12 +0,0 @@
from . import views
from django.urls import path
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
urlpatterns = [
path("", lambda r: render(r, "blog/index.html")),
path("posts", views.IndexView.as_view()),
path("preview", login_required(views.ArticleList.as_view(preview=True), login_url='/admin/login'), name='articles'),
path("articles", views.ArticleList.as_view(), name='articles'),
path('articles/<slug:slug>/', views.ArticleDetail.as_view(), name='article_detail'),
]