2016-06-17 02:30:48 +02:00
|
|
|
|
|
|
|
# For the Dev VM environment, we use the same settings as the
|
2016-07-20 05:42:43 +02:00
|
|
|
# sample prod_settings.py file, with a few exceptions.
|
2016-07-20 05:45:50 +02:00
|
|
|
from .prod_settings_template import *
|
2016-10-06 01:42:24 +02:00
|
|
|
import os
|
2017-03-05 00:34:09 +01:00
|
|
|
from typing import Set
|
2016-06-17 02:30:48 +02:00
|
|
|
|
2016-07-16 16:13:17 +02:00
|
|
|
LOCAL_UPLOADS_DIR = 'var/uploads'
|
2016-10-27 23:14:23 +02:00
|
|
|
# Default to subdomains disabled in development until we can update
|
|
|
|
# the development documentation to make sense with subdomains.
|
|
|
|
REALMS_HAVE_SUBDOMAINS = False
|
|
|
|
# Check if test_settings.py set EXTERNAL_HOST.
|
|
|
|
EXTERNAL_HOST = os.getenv('EXTERNAL_HOST')
|
|
|
|
if EXTERNAL_HOST is None:
|
|
|
|
if REALMS_HAVE_SUBDOMAINS:
|
|
|
|
EXTERNAL_HOST = 'zulipdev.com:9991'
|
|
|
|
else:
|
|
|
|
EXTERNAL_HOST = 'localhost:9991'
|
2016-07-19 14:35:08 +02:00
|
|
|
ALLOWED_HOSTS = ['*']
|
2016-06-17 02:30:48 +02:00
|
|
|
AUTHENTICATION_BACKENDS = ('zproject.backends.DevAuthBackend',)
|
|
|
|
# Add some of the below if you're testing other backends
|
|
|
|
# AUTHENTICATION_BACKENDS = ('zproject.backends.EmailAuthBackend',
|
|
|
|
# 'zproject.backends.GoogleMobileOauth2Backend',)
|
|
|
|
EXTERNAL_URI_SCHEME = "http://"
|
|
|
|
EMAIL_GATEWAY_PATTERN = "%s@" + EXTERNAL_HOST
|
|
|
|
NOTIFICATION_BOT = "notification-bot@zulip.com"
|
|
|
|
ERROR_BOT = "error-bot@zulip.com"
|
|
|
|
NEW_USER_BOT = "new-user-bot@zulip.com"
|
|
|
|
EMAIL_GATEWAY_BOT = "emailgateway@zulip.com"
|
|
|
|
EXTRA_INSTALLED_APPS = ["zilencer", "analytics"]
|
|
|
|
# Disable Camo in development
|
|
|
|
CAMO_URI = ''
|
2016-06-03 01:02:58 +02:00
|
|
|
OPEN_REALM_CREATION = True
|
2016-05-11 19:01:53 +02:00
|
|
|
TERMS_OF_SERVICE = 'zproject/terms.md.template'
|
2016-06-03 01:02:58 +02:00
|
|
|
|
2016-07-19 06:44:48 +02:00
|
|
|
SAVE_FRONTEND_STACKTRACES = True
|
2016-08-12 20:09:38 +02:00
|
|
|
EVENT_LOGS_ENABLED = True
|
2016-08-12 20:24:04 +02:00
|
|
|
SYSTEM_ONLY_REALMS = set() # type: Set[str]
|
2016-04-24 17:08:51 +02:00
|
|
|
USING_PGROONGA = True
|
2016-10-17 18:11:16 +02:00
|
|
|
# Flush cache after migration.
|
|
|
|
POST_MIGRATION_CACHE_FLUSHING = True # type: bool
|
2016-10-27 12:06:44 +02:00
|
|
|
|
|
|
|
# Enable inline open graph preview in development for now
|
|
|
|
INLINE_URL_EMBED_PREVIEW = True
|
2016-10-05 03:38:20 +02:00
|
|
|
ANALYTICS_LOCK_DIR = "var/analytics-lock-dir"
|