use new core sites instead of old financeplanner ones
This commit is contained in:
@@ -43,7 +43,6 @@ else:
|
|||||||
ALLOWED_HOSTS = ["*"]
|
ALLOWED_HOSTS = ["*"]
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
"financeplanner",
|
|
||||||
"core",
|
"core",
|
||||||
"django.contrib.admin",
|
"django.contrib.admin",
|
||||||
"django.contrib.auth",
|
"django.contrib.auth",
|
||||||
@@ -107,6 +106,6 @@ USE_L10N = False
|
|||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
|
||||||
LOGIN_URL = reverse_lazy("login")
|
LOGIN_URL = reverse_lazy("login")
|
||||||
LOGIN_REDIRECT_URL = reverse_lazy("finance:index")
|
LOGIN_REDIRECT_URL = reverse_lazy("core:index")
|
||||||
|
|
||||||
STATIC_URL = "/static/"
|
STATIC_URL = "/static/"
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
from django.contrib.auth.views import LoginView, LogoutView
|
from django.contrib.auth.views import LoginView, LogoutView
|
||||||
from django.urls import path, include
|
from django.urls import path, include
|
||||||
from django.views.generic import RedirectView
|
|
||||||
|
|
||||||
from financeplanner.admin import admin_site
|
from core.admin import admin_site
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("admin/", admin_site.urls),
|
path("admin/", admin_site.urls),
|
||||||
path("login/", LoginView.as_view(), name="login"),
|
path("login/", LoginView.as_view(), name="login"),
|
||||||
path("logout/", LogoutView.as_view(), name="logout"),
|
path("logout/", LogoutView.as_view(), name="logout"),
|
||||||
path("finance/", include(("financeplanner.urls", "financeplanner"), namespace="finance")),
|
path("", include(("core.urls", "core"))),
|
||||||
path("", RedirectView.as_view(pattern_name="finance:index", permanent=False), name="index"),
|
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user