chore: fix pre-commit hook

This commit is contained in:
2026-09-10 13:58:49 +02:00
parent 3944c971eb
commit cce932d171
15 changed files with 139 additions and 44 deletions
+3 -2
View File
@@ -18,13 +18,14 @@ Including another URLconf
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
from django.urls import include, path
from portfolio.views import IndexView
from patrickcanal_it.views import IndexView
urlpatterns = [
path("admin/", admin.site.urls),
path("", IndexView.as_view(), name="index"),
path("portfolio/", include("portfolio.urls")),
]
if settings.DEBUG:
+7
View File
@@ -0,0 +1,7 @@
from django.shortcuts import redirect
from django.views.generic import View
class IndexView(View):
def get(self, request, *args, **kwargs):
return redirect("portfolio")