Skip to content

Commit

Permalink
Set a default WAGTAILDOCS_EXTENSIONS list in project template
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Mar 7, 2024
1 parent abde315 commit f39a91a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wagtail/project_template/project_name/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,9 @@
# 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 = "http://example.com"

# Allowed file extensions for documents in the document library.
# This can be omitted to allow all files, but note that this may present a security risk
# if untrusted users are allowed to upload files -
# see https://docs.wagtail.org/en/stable/advanced_topics/deploying.html#user-uploaded-files
WAGTAILDOCS_EXTENSIONS = ['7z', 'bz2', 'csv', 'docx', 'gz', 'key', 'odt', 'pdf', 'pptx', 'rar', 'rtf', 'tar', 'txt', 'xlsx', 'zip']

0 comments on commit f39a91a

Please sign in to comment.