settings.py 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. from misago.settings_base import *
  2. # Allow debug?
  3. DEBUG = True
  4. TEMPLATE_DEBUG = DEBUG
  5. # Board address
  6. BOARD_ADDRESS = 'http://somewhere.com'
  7. # Admin control panel path
  8. # Leave this setting empty or remove it to turn admin panel off.
  9. # Misago always asserts that it has correct admin path and fixes it
  10. # if neccessary. This means "/admincp////" becomes "admincp/" and
  11. # "administration" becomes "administration/"
  12. ADMIN_PATH = 'admincp'
  13. # System admins
  14. ADMINS = ()
  15. # Database connection
  16. DATABASES = {
  17. 'default': {
  18. 'ENGINE': '', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
  19. 'NAME': '', # Or path to database file if using sqlite3.
  20. 'USER': '', # Not used with sqlite3.
  21. 'PASSWORD': '', # Not used with sqlite3.
  22. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
  23. 'PORT': '', # Set to empty string for default. Not used with sqlite3.
  24. }
  25. }
  26. # Cache engine
  27. # Misago is EXTREMELY data hungry
  28. # If you don't set any cache, it will BRUTALISE your database and memory
  29. # In production ALWAYS use cache
  30. CACHES = {}
  31. # Cookies configuration
  32. COOKIES_DOMAIN = '' # Set empty for automatic detection.
  33. COOKIES_PATH = '' # Set empty for automatic detection.
  34. COOKIES_PREFIX = '' # Allows you to avoid cookies collisions with other applications.
  35. COOKIES_SECURE = False # Set this to true if AND ONLY IF you are using SSL on your forum.
  36. # Sessions configuration
  37. SESSION_LIFETIME = 86400 # Number of seconds since last request after which session is marked as expired.
  38. # Local time zone for this installation. Choices can be found here:
  39. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  40. # although not all choices may be available on all operating systems.
  41. # On Unix systems, a value of None will cause Django to use the same
  42. # timezone as the operating system.
  43. # If running in a Windows environment this must be set to the same as your
  44. # system time zone.
  45. TIME_ZONE = 'UTC'
  46. # Language code for this installation. All choices can be found here:
  47. # http://www.i18nguy.com/unicode/language-identifiers.html
  48. LANGUAGE_CODE = 'en_US'
  49. # Absolute filesystem path to the directory that will hold user-uploaded files.
  50. # Example: "/home/media/media.lawrence.com/media/"
  51. MEDIA_ROOT = ''
  52. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  53. # trailing slash.
  54. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
  55. MEDIA_URL = '/media/'
  56. # Absolute path to the directory static files should be collected to.
  57. # Don't put anything in this directory yourself; store your static files
  58. # in apps' "static/" subdirectories and in STATICFILES_DIRS.
  59. # Example: "/home/media/media.lawrence.com/static/"
  60. STATIC_ROOT = ''
  61. # URL prefix for static files.
  62. # Example: "http://media.lawrence.com/static/"
  63. STATIC_URL = '/static/'
  64. # Additional locations of static files
  65. STATICFILES_DIRS = (
  66. # Put strings here, like "/home/html/static" or "C:/www/django/static".
  67. # Always use forward slashes, even on Windows.
  68. # Don't forget to use absolute paths, not relative paths.
  69. # Make sure directory containing avatars is located under first directory on list
  70. '',
  71. )
  72. # E-mail host
  73. EMAIL_HOST = ''
  74. # E-mail port
  75. EMAIL_PORT = 25
  76. # E-mail host user
  77. EMAIL_HOST_USER = ''
  78. # E-mail host password
  79. EMAIL_HOST_PASSWORD = ''
  80. # Use TLS encryption
  81. EMAIL_USE_TLS = False
  82. # E-mail subject prefix added to emails for staff
  83. EMAIL_SUBJECT_PREFIX = '[Misago]'
  84. # Catch-all e-mail address
  85. # If DEBUG_MODE is on, all emails will be sent to this address instead of real recipient.
  86. CATCH_ALL_EMAIL_ADDRESS = ''
  87. # Directories with templates
  88. TEMPLATE_DIRS = (
  89. # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  90. # Always use forward slashes, even on Windows.
  91. # Don't forget to use absolute paths, not relative paths.
  92. '/templates'
  93. )
  94. # List of installed themes
  95. INSTALLED_THEMES = (
  96. 'sora', # Default style always first
  97. 'admin', # Admin theme always last
  98. )
  99. # Make this unique, and don't share it with anybody.
  100. SECRET_KEY = ''
  101. # Python dotted path to the WSGI application used by Django's runserver.
  102. WSGI_APPLICATION = 'deployment.wsgi.application'