rewrite frontend and logic in core app
This commit is contained in:
10
core/urls.py
Normal file
10
core/urls.py
Normal 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"),
|
||||
]
|
||||
Reference in New Issue
Block a user