Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.2 KiB

  1. = Themes =
  2. Themes in Mumble-Django consist of two parts: A template directory and static
  3. content. The template directory for each theme should //not// be accessible
  4. from the browser and therefore cannot go into the same directory where the
  5. static files (like css files and images) are in.
  6. == Directory structure ==
  7. / Mumble-Django installation directory
  8. /themes/<name>/ Templates
  9. /htdocs/themes/<name>/ Static content
  10. To use a theme, set the THEME variable in settings.py to the name of the theme.
  11. This will adjust the settings so that Django first tries to load templates from
  12. the theme's template directory, and if it does not find a template there,
  13. proceeds to use the default (built-in) templates instead.
  14. This means a theme should only include those templates that it actually
  15. modifies!
  16. == THEME_URL ==
  17. When the THEME setting is set, Mumble-Django will automatically enable a
  18. context processor that sets the THEME_URL template variable to the URL under
  19. which the /htdocs/themes/<name>/ directory is served, so in order to reference
  20. files in the static directory, template authors should always use the THEME_URL
  21. variable as this is the most accurate way to build these URLs. THEME_URL will
  22. always contain a trailing "/".