settings.py 4.2 KB

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