12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- """
- Misago default settings
- This fille sets everything Misago needs to run.
- If you want to add custom app, middleware or path, please update setting vallue
- defined in this file instead of copying setting from here to your settings.py.
- Yes:
- #yourproject/settings.py
- INSTALLED_APPS += (
- 'myawesomeapp',
- )
- No:
- #yourproject/settings.py
- INSTALLED_APPS = (
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'misago.core',
- 'misago.conf',
- ...
- 'myawesomeapp',
- )
- """
- # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
- import os
- MISAGO_BASE_DIR = os.path.dirname(os.path.dirname(__file__))
- # Application definition
- INSTALLED_APPS = (
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'debug_toolbar',
- 'floppyforms',
- 'misago.core',
- 'misago.conf',
- )
- MIDDLEWARE_CLASSES = (
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- 'misago.core.middleware.threadstore.ThreadStoreMiddleware',
- 'misago.core.middleware.exceptionhandler.ExceptionHandlerMiddleware',
- )
- TEMPLATE_CONTEXT_PROCESSORS = (
- 'django.contrib.auth.context_processors.auth',
- 'django.core.context_processors.debug',
- 'django.core.context_processors.i18n',
- 'django.core.context_processors.media',
- 'django.core.context_processors.static',
- 'django.core.context_processors.tz',
- 'django.contrib.messages.context_processors.messages',
- 'misago.core.context_processors.site_address',
- )
- # Register Misago directories
- LOCALE_PATHS = (
- os.path.join(MISAGO_BASE_DIR, 'locale'),
- )
- STATICFILES_DIRS = (
- os.path.join(MISAGO_BASE_DIR, 'static'),
- )
- TEMPLATE_DIRS = (
- os.path.join(MISAGO_BASE_DIR, 'templates'),
- )
- # Internationalization
- USE_I18N = True
- USE_L10N = True
- USE_TZ = True
- TIME_ZONE = 'UTC'
|