mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	- To avoid redefining migrate manage command is added new application configuration class which emit post_migration signal. This signal require models module inside application and defined AppConfig Instance as signal sender. Documentation here: https://docs.djangoproject.com/en/1.8/ref/signals/#post-migrate. - Add AppConf subclass to __init__ zerver app file to make apllication load it by default. Fixes #1084.
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
 | 
						|
# For the Dev VM environment, we use the same settings as the
 | 
						|
# sample prod_settings.py file, with a few exceptions.
 | 
						|
from .prod_settings_template import *
 | 
						|
import os
 | 
						|
 | 
						|
LOCAL_UPLOADS_DIR = 'var/uploads'
 | 
						|
# 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'
 | 
						|
ALLOWED_HOSTS = ['*']
 | 
						|
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 = ''
 | 
						|
OPEN_REALM_CREATION = True
 | 
						|
TERMS_OF_SERVICE = 'zproject/terms.md.template'
 | 
						|
 | 
						|
SAVE_FRONTEND_STACKTRACES = True
 | 
						|
EVENT_LOGS_ENABLED = True
 | 
						|
SYSTEM_ONLY_REALMS = set() # type: Set[str]
 | 
						|
USING_PGROONGA = True
 | 
						|
# Flush cache after migration.
 | 
						|
POST_MIGRATION_CACHE_FLUSHING = True  # type: bool
 |