1
1

add balance prediction page and make it the default

This commit is contained in:
2021-01-10 22:15:20 +01:00
parent 8d94d62c85
commit 49ef36fbce
7 changed files with 252 additions and 36 deletions

View File

@@ -2,9 +2,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
from core.views import BalanceView, SubjectsView
urlpatterns = [
path("", RedirectView.as_view(pattern_name="core:subjects", permanent=False), name="index"),
path("", RedirectView.as_view(pattern_name="core:balance", permanent=False), name="index"),
path("balance/", login_required(BalanceView.as_view()), name="balance"),
path("subjects/", login_required(SubjectsView.as_view()), name="subjects"),
]