feat: enable translations and rest api

This commit is contained in:
Konstantin 2024-11-23 14:59:51 +01:00
parent e98db55a16
commit 310fd5ed7a
Signed by: konstantin
GPG key ID: A128B78773E41ACE
4 changed files with 48 additions and 9 deletions

View file

@ -35,6 +35,7 @@ INSTALLED_APPS = [
"wagtail.contrib.settings",
"wagtail.contrib.forms",
"wagtail.contrib.redirects",
"wagtail.contrib.simple_translation",
"wagtail.embeds",
"wagtail.sites",
"wagtail.users",
@ -44,6 +45,8 @@ INSTALLED_APPS = [
"wagtail.search",
"wagtail.admin",
"wagtail.locales",
"wagtail.api.v2",
"rest_framework",
"wagtail",
"modelcluster",
"taggit",
@ -149,6 +152,8 @@ WAGTAIL_CONTENT_LANGUAGES = LANGUAGES = [
('nl', "Dutch"),
]
WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.0/howto/static-files/
@ -198,6 +203,9 @@ WAGTAILSEARCH_BACKENDS = {
# Base URL to use when referring to full URLs within the Wagtail admin backend -
# e.g. in notification emails. Don't include '/admin' or a trailing slash
WAGTAILADMIN_BASE_URL = "https://iamkonstantin.eu"
WAGTAILAPI_BASE_URL = "https://iamkonstantin.eu"
WAGTAILAPI_SEARCH_ENABLED = True
WAGTAIL_CODE_BLOCK_LANGUAGES = (
('bash', 'Bash/Shell'),