settings.py 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. # Override DB if we are in tests
  27. if 'test' in sys.argv:
  28. DATABASES['default'] = {'ENGINE': 'django.db.backends.sqlite3'}
  29. SKIP_SOUTH_TESTS = True
  30. # Cache engine
  31. # Misago is EXTREMELY data hungry
  32. # If you don't set any cache, it will BRUTALISE your database and memory
  33. # In production ALWAYS use cache
  34. CACHES = {
  35. 'default': {
  36. 'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
  37. }
  38. }
  39. # Cookies configuration
  40. COOKIES_DOMAIN = '' # For example cookie domain for "www.mysite.com" or "forum.mysite.com" is ".mysite.com"
  41. COOKIES_PATH = ''
  42. COOKIES_PREFIX = '' # Allows you to avoid cookies collisions with other applications.
  43. COOKIES_SECURE = False # Set this to true if AND ONLY IF you are using SSL on your forum.
  44. # Sessions configuration
  45. SESSION_LIFETIME = 3600 # Number of seconds since last request after which session is marked as expired.
  46. # Local time zone for this installation. Choices can be found here:
  47. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  48. # although not all choices may be available on all operating systems.
  49. # On Unix systems, a value of None will cause Django to use the same
  50. # timezone as the operating system.
  51. # If running in a Windows environment this must be set to the same as your
  52. # system time zone.
  53. TIME_ZONE = 'UTC'
  54. # Language code for this installation. All choices can be found here:
  55. # http://www.i18nguy.com/unicode/language-identifiers.html
  56. LANGUAGE_CODE = 'en_US'
  57. # Absolute filesystem path to the directory that will hold user-uploaded files.
  58. # Always use forward slashes, even on Windows.
  59. # Example: "/home/media/media.lawrence.com/media/"
  60. MEDIA_ROOT = ''
  61. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  62. # trailing slash.
  63. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
  64. MEDIA_URL = '/media/'
  65. # Absolute path to the directory static files should be collected to.
  66. # Don't put anything in this directory yourself; store your static files
  67. # Always use forward slashes, even on Windows.
  68. # in apps' "static/" subdirectories and in STATICFILES_DIRS.
  69. # Example: "/home/media/media.lawrence.com/static/"
  70. STATIC_ROOT = ''
  71. # URL prefix for static files.
  72. # Example: "http://media.lawrence.com/static/"
  73. STATIC_URL = '/static/'
  74. # Additional locations of static files
  75. STATICFILES_DIRS = (
  76. # Put strings here, like "/home/html/static" or "C:/www/django/static".
  77. # Always use forward slashes, even on Windows.
  78. # Don't forget to use absolute paths, not relative paths.
  79. # Make sure directory containing avatars is located under first directory on list
  80. '/static',
  81. )
  82. # E-mail host
  83. EMAIL_HOST = ''
  84. # E-mail port
  85. EMAIL_PORT = 25
  86. # E-mail host user
  87. EMAIL_HOST_USER = ''
  88. # E-mail host password
  89. EMAIL_HOST_PASSWORD = ''
  90. # Use TLS encryption
  91. EMAIL_USE_TLS = False
  92. # E-mail subject prefix added to emails for staff
  93. EMAIL_SUBJECT_PREFIX = '[Misago]'
  94. # Catch-all e-mail address
  95. # If DEBUG_MODE is on, all emails will be sent to this address instead of real recipient.
  96. CATCH_ALL_EMAIL_ADDRESS = ''
  97. # Directories with templates
  98. TEMPLATE_DIRS = (
  99. # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  100. # Always use forward slashes, even on Windows.
  101. # Don't forget to use absolute paths, not relative paths.
  102. '/templates'
  103. )
  104. # List of installed themes
  105. INSTALLED_THEMES = (
  106. 'cranefly', # Default style always first
  107. 'admin', # Admin theme always last
  108. )
  109. # Make this unique, and don't share it with anybody.
  110. SECRET_KEY = ''
  111. # Python dotted path to the WSGI application used by Django's runserver.
  112. WSGI_APPLICATION = 'deployment.wsgi.application'