This commit is contained in:
2024-09-10 20:21:33 +02:00
parent 1cc67371c5
commit 9b0cb634b5
276 changed files with 16434 additions and 439 deletions

View File

@@ -26,6 +26,11 @@ BASE_DIR = os.path.dirname(PROJECT_DIR)
INSTALLED_APPS = [
"home",
"search",
"about",
"contact",
"services",
'widget_tweaks',
"wagtail.contrib.forms",
"wagtail.contrib.redirects",
"wagtail.embeds",
@@ -65,9 +70,8 @@ ROOT_URLCONF = "saburly.urls"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [
os.path.join(PROJECT_DIR, "templates"),
],
"DIRS": [os.path.join(BASE_DIR, "templates")],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
@@ -134,11 +138,11 @@ STATICFILES_FINDERS = [
]
STATICFILES_DIRS = [
os.path.join(PROJECT_DIR, "static"),
os.path.join(PROJECT_DIR, 'static'),
]
STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_URL = "/static/"
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_URL = "/media/"
@@ -180,3 +184,5 @@ WAGTAILADMIN_BASE_URL = "http://example.com"
# if untrusted users are allowed to upload files -
# see https://docs.wagtail.org/en/stable/advanced_topics/deploying.html#user-uploaded-files
WAGTAILDOCS_EXTENSIONS = ['csv', 'docx', 'key', 'odt', 'pdf', 'pptx', 'rtf', 'txt', 'xlsx', 'zip']
WAGTAILIMAGES_EXTENSIONS = ["gif", "jpg", "jpeg", "png", "webp", "svg"]