Add search function and ui refactor

This commit is contained in:
2022-04-19 14:17:26 +02:00
parent 0f762baed2
commit 13cc531c5d
11 changed files with 320 additions and 275 deletions

View File

@@ -28,7 +28,7 @@ SECRET_KEY = (
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["*"]
# Application definition

View File

@@ -14,18 +14,18 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.conf import settings
from django.shortcuts import redirect
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from portal.utils import get_site_conf
from portal.views import GetHome
site_conf = get_site_conf()
admin.site.site_header = site_conf.site_name
urlpatterns = [
path("", GetHome.as_view(), name="index"),
path("", lambda r: redirect("/portal/")),
path("portal/", include("portal.urls")),
path("ht/", include("health_check.urls")),
path("admin/", admin.site.urls),