Python Galery
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.

config.py 935B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import os
  2. BASE_DIR = os.path.dirname(os.path.abspath(__file__))
  3. #
  4. # General settings
  5. #
  6. # APP_NAME is used for logging
  7. APP_NAME = 'pygal'
  8. # SECURITY WARNING: don't run with debug turned on in production!
  9. # DEBUG = False
  10. # SECURITY WARNING: don't run with a dummy secret in production!
  11. # SECRET_KEY = 'define a secret key'
  12. # SECURITY WARNING: don't run with '0.0.0.0' in in production, unless you know what you are doing!
  13. # ALLOWED_HOSTS = ['127.0.0.1', ]
  14. #
  15. # ITEM_ROOT = os.path.join(BASE_DIR, 'data', 'example_data')
  16. #
  17. # Access Right settings
  18. #
  19. # Set this to True to ensure, that unauthenticated users have no permission
  20. # SUSPEND_PUBLIC = True
  21. #
  22. # Style settings
  23. #
  24. # DEFAULT_THEME = 'clear-red'
  25. # THUMBNAIL_SIZES = [137, 175, 250]
  26. # WEBNAIL_SIZES = [450, 1100, 1750]
  27. #
  28. # Content settings
  29. #
  30. # Sorting by name if False
  31. # SORT_BY_DATE = True
  32. # SHOW_IMAGE = True
  33. # SHOW_VIDEO = True
  34. # SHOW_AUDIO = False
  35. # SHOW_OTHER = False