settings.py.j2 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # wger
  4. from wger.settings_global import *
  5. # Use 'DEBUG = True' to get more details for server errors
  6. DEBUG = True
  7. # List of administrations
  8. ADMINS = (('Colin Powell', 'colin@unbl.ink'), )
  9. MANAGERS = ADMINS
  10. # SERVER_EMAIL = 'info@my-domain.com'
  11. # The email address that error messages (and only error messages, such as
  12. # internal server errors) come from, such as those sent to ADMINS and MANAGERS.
  13. DATABASES = {
  14. 'default': {
  15. 'ENGINE': 'django.db.backends.postgresql',
  16. 'NAME': 'wger',
  17. 'USER': 'wger',
  18. 'PASSWORD': '{{wger_db_pass}}',
  19. 'HOST': 'db.service',
  20. 'PORT': '5432',
  21. }
  22. } # yapf: disable
  23. # Timezone for this installation. Consult settings_global.py for more information
  24. TIME_ZONE = 'US/Eastern'
  25. # Make this unique, and don't share it with anybody.
  26. SECRET_KEY = '{{wger_secret_key}}'
  27. # Your reCaptcha keys
  28. RECAPTCHA_PUBLIC_KEY = ''
  29. RECAPTCHA_PRIVATE_KEY = ''
  30. NOCAPTCHA = True
  31. # The site's URL (e.g. http://www.my-local-gym.com or http://localhost:8000)
  32. # This is needed for uploaded files and images (exercise images, etc.) to be
  33. # properly served.
  34. SITE_URL = 'https://fit.unbl.ink'
  35. # Path to uploaded files
  36. # Absolute filesystem path to the directory that will hold user-uploaded files.
  37. MEDIA_ROOT = '/usr/local/www/wger/media/'
  38. MEDIA_URL = '/media/'
  39. STATIC_ROOT = '/usr/local/www/wger/static/'
  40. STATIC_URL = '/static/'
  41. COMPRESS_URL = '/usr/local/www/wger/static/compress/'
  42. # Allow all hosts to access the application. Change if used in production.
  43. ALLOWED_HOSTS = ['*']
  44. # This might be a good idea if you setup redis
  45. #SESSION_ENGINE = "django.contrib.sessions.backends.cache"
  46. # Configure a real backend in production
  47. # See: https://docs.djangoproject.com/en/dev/topics/email/#email-backends
  48. if DEBUG:
  49. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  50. # Sender address used for sent emails
  51. WGER_SETTINGS['EMAIL_FROM'] = 'wger Workout Manager <wger@example.com>'
  52. DEFAULT_FROM_EMAIL = WGER_SETTINGS['EMAIL_FROM']
  53. # Your twitter handle, if you have one for this instance.
  54. #WGER_SETTINGS['TWITTER'] = ''