11 lines
366 B
Python
11 lines
366 B
Python
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"),
|
|
]
|