django_settings.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. CodeRed CMS Django Settings
  2. ===========================
  3. Default settings are loaded from ``coderedcms/settings.py``. Available settings for CodeRed CMS:
  4. CODERED_CACHE_PAGES
  5. -------------------
  6. Boolean on whether or not to load the page caching machinery and enable cache settings in the
  7. wagtail admin.
  8. CODERED_CACHE_BACKEND
  9. ---------------------
  10. The name of the Django cache backend to use for CodeRed CMS. Defaults to ``'default'`` which is
  11. required by Django when using the cache.
  12. CODERED_PROTECTED_MEDIA_ROOT
  13. ----------------------------
  14. The directory where files from File Upload fields on Form Pages are saved. These files are
  15. served through Django using ``CODERED_PROTECTED_MEDIA_URL`` and require login to access.
  16. Defaults to ``protected/`` in your project directory.
  17. CODERED_PROTECTED_MEDIA_URL
  18. ---------------------------
  19. The URL for protected media files from form file uploads. Defaults to ``'/protected/'``
  20. CODERED_PROTECTED_MEDIA_UPLOAD_WHITELIST
  21. ----------------------------------------
  22. The allowed filetypes for media upload in the form of a list of file type extensions.
  23. Default is blank. For example, to only allow documents and images, set to:
  24. ``['.pdf', '.doc', '.docx', '.txt', '.rtf', '.jpg', '.jpeg', '.png', '.gif']``
  25. CODERED_PROTECTED_MEDIA_UPLOAD_BLACKLIST
  26. ----------------------------------------
  27. The disallowed filetypes for media upload in the form of a list of file type extensions.
  28. Defaults to ``['.sh', '.exe', '.bat', '.ps1', '.app', '.jar', '.py', '.php', '.pl', '.rb']``
  29. CODERED_FRONTEND_*
  30. ------------------
  31. Various frontend settings to specify defaults and choices used in the wagtail admin related
  32. to rendering blocks, pages, and templates. By default, all CODERED_FRONTEND_* settings are
  33. designed to work with Bootstrap 4 CSS framework, but these can be customized if using a
  34. different CSS framework or theme variant.