settings.py 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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': 'django.db.backends.', # 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 = '' # For example cookie domain for "www.mysite.com" or "forum.mysite.com" is ".mysite.com"
  33. COOKIES_PATH = ''
  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 = 3600 # 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. # Always use forward slashes, even on Windows.
  51. # Example: "/home/media/media.lawrence.com/media/"
  52. MEDIA_ROOT = ''
  53. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  54. # trailing slash.
  55. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
  56. MEDIA_URL = '/media/'
  57. # Absolute path to the directory static files should be collected to.
  58. # Don't put anything in this directory yourself; store your static files
  59. # Always use forward slashes, even on Windows.
  60. # in apps' "static/" subdirectories and in STATICFILES_DIRS.
  61. # Example: "/home/media/media.lawrence.com/static/"
  62. STATIC_ROOT = ''
  63. # URL prefix for static files.
  64. # Example: "http://media.lawrence.com/static/"
  65. STATIC_URL = '/static/'
  66. # Additional locations of static files
  67. STATICFILES_DIRS = (
  68. # Put strings here, like "/home/html/static" or "C:/www/django/static".
  69. # Always use forward slashes, even on Windows.
  70. # Don't forget to use absolute paths, not relative paths.
  71. # Make sure directory containing avatars is located under first directory on list
  72. '/static',
  73. )
  74. # E-mail host
  75. EMAIL_HOST = ''
  76. # E-mail port
  77. EMAIL_PORT = 25
  78. # E-mail host user
  79. EMAIL_HOST_USER = ''
  80. # E-mail host password
  81. EMAIL_HOST_PASSWORD = ''
  82. # Use TLS encryption
  83. EMAIL_USE_TLS = False
  84. # E-mail subject prefix added to emails for staff
  85. EMAIL_SUBJECT_PREFIX = '[Misago]'
  86. # Catch-all e-mail address
  87. # If DEBUG_MODE is on, all emails will be sent to this address instead of real recipient.
  88. CATCH_ALL_EMAIL_ADDRESS = ''
  89. # Directories with templates
  90. TEMPLATE_DIRS = (
  91. # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  92. # Always use forward slashes, even on Windows.
  93. # Don't forget to use absolute paths, not relative paths.
  94. '/templates'
  95. )
  96. # List of installed themes
  97. INSTALLED_THEMES = (
  98. 'sora', # Default style always first
  99. 'admin', # Admin theme always last
  100. )
  101. # Make this unique, and don't share it with anybody.
  102. SECRET_KEY = ''
  103. # Python dotted path to the WSGI application used by Django's runserver.
  104. WSGI_APPLICATION = 'deployment.wsgi.application'