Python Galery
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import os
  2. BASE_DIR = os.path.dirname(os.path.abspath(__file__))
  3. #######################################################################
  4. # Configuration of your django application
  5. #######################################################################
  6. #
  7. # PyGal Setting
  8. #
  9. # The root for searching for items
  10. ITEM_ROOT = os.path.join(BASE_DIR, 'data', 'example_data')
  11. # Set this to True to ensure, that unauthenticated users have no permission (With False they get permiisions to the
  12. # structure. You can set public in the item (folde) to make the items visible)
  13. #SUSPEND_PUBLIC = False
  14. # THUMBNAIL_SIZES = [137, 175, 250]
  15. # WEBNAIL_SIZES = [450, 1100, 1750]
  16. # SORT_BY_DATE = True # Sorting by name if False
  17. # SHOW_IMAGE = True
  18. # SHOW_VIDEO = True
  19. # SHOW_AUDIO = False
  20. # SHOW_OTHER = False
  21. # Access Right settings
  22. #
  23. # Users library
  24. #
  25. # This enables or disables the self registration
  26. USERS_SELF_REGISTRATION = False
  27. #
  28. # Themes library
  29. #
  30. # This defines the default theme, if no theme is set in the django parameters
  31. DEFAULT_THEME = 'clear-red'
  32. #
  33. # Django
  34. #
  35. # This defines the mode of the running server
  36. # SECURITY WARNING: don't run with debug turned on in production!
  37. DEBUG = False
  38. # This a the secret key for your application.
  39. # SECURITY WARNING: don't run with a dummy secret in production! And don't let others read this key!
  40. SECRET_KEY = None
  41. # This defines the listener hostnames for your django server
  42. # SECURITY WARNING: don't run with '0.0.0.0' in in production, unless you know what you are doing!
  43. # ALLOWED_HOSTS = ['<YOUR_SERVER_HOSTNAME>', ]
  44. # This might be needed for usage in a docker environment
  45. # CSRF_TRUSTED_ORIGINS = ['<YOUR_SERVER_URL>', ]