1
1

rewrite frontend and logic in core app

This commit is contained in:
2021-01-10 21:25:43 +01:00
parent 37f698d82b
commit 652cea79ae
10 changed files with 318 additions and 30 deletions

10
core/urls.py Normal file
View File

@@ -0,0 +1,10 @@
from django.contrib.auth.decorators import login_required
from django.urls import path
from django.views.generic import RedirectView
from core.views import SubjectsView
urlpatterns = [
path("", RedirectView.as_view(pattern_name="core:subjects", permanent=False), name="index"),
path("subjects/", login_required(SubjectsView.as_view()), name="subjects"),
]