Skip to content

Commit

Permalink
fix(sample_project): add missing settings and provide urlconf wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed May 29, 2024
1 parent 302b18e commit 782b5c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sample_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"apis_core.core",
"apis_core.apis_metainfo",
"apis_core.apis_relations",
"apis_core.apis_entities",
Expand All @@ -25,6 +26,7 @@
"apis_core.history",
# ui stuff
"crispy_forms",
"crispy_bootstrap4",
"django_filters",
"django_tables2",
"dal",
Expand All @@ -47,7 +49,8 @@
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]

ROOT_URLCONF = "apis_core.urls"
# ROOT_URLCONF = "apis_core.urls"
ROOT_URLCONF = "sample_project.urls"

TEMPLATES = [
{
Expand Down Expand Up @@ -76,3 +79,5 @@
"NAME": "/tmp/db.sqlite3",
},
}

CRISPY_TEMPLATE_PACK = "bootstrap4"
3 changes: 3 additions & 0 deletions sample_project/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.urls import include, path

urlpatterns = [path("apis/", include("apis_core.urls", namespace="apis"))]

0 comments on commit 782b5c8

Please sign in to comment.