feat: enable translations and rest api
This commit is contained in:
parent
e98db55a16
commit
310fd5ed7a
4 changed files with 48 additions and 9 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue