Make a start on the templates
This commit is contained in:
parent
9f01e4bff2
commit
34c8bae899
6 changed files with 34 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ https://docs.djangoproject.com/en/5.0/ref/settings/
|
|||
from pathlib import Path
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
||||
|
||||
|
||||
# Quick-start development settings - unsuitable for production
|
||||
|
|
@ -58,7 +58,7 @@ ROOT_URLCONF = "config.urls"
|
|||
TEMPLATES = [
|
||||
{
|
||||
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
||||
"DIRS": [],
|
||||
"DIRS": [BASE_DIR/"reinheit"/"templates"],
|
||||
"APP_DIRS": True,
|
||||
"OPTIONS": {
|
||||
"context_processors": [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
from django.urls import path
|
||||
from django.urls import path, include
|
||||
from django.contrib import admin
|
||||
|
||||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
|
||||
path("brews/", include(("reinheit.apps.brew.urls", "brew"), namespace="brews"))
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue