Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# !!!!!!!!!!!!!!!!!!!!!!! # DONT FORGET TO DOCUMENT ANY NEW SETTINGS IN /docs/settings.rst # !!!!!!!!!!!!!!!!!!!!!!
'application': { 'source_filenames': assets.get_css_files(), 'output_filename': 'common/css/madrona.r?.css', 'extra_context': { 'media': 'all' } } }
'application': { 'source_filenames': assets.get_js_files(), 'output_filename': 'madrona.r?.js' }, 'tests': { 'source_filenames': assets.get_js_test_files(), 'output_filename': 'madrona_tests.r?.js' } }
# GZip speeds up downloads by compressing on the fly 'django.middleware.gzip.GZipMiddleware', 'django.middleware.common.CommonMiddleware', 'madrona.common.middleware.IgnoreCsrfMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', # compatibility problems with django trunk? # 'maintenancemode.middleware.MaintenanceModeMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'madrona.openid.middleware.OpenIDMiddleware', )
'madrona.common', 'django.contrib.auth', 'django.contrib.admin', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.gis', 'flatblocks', 'compress', 'madrona.shapes', 'madrona.google-analytics', 'madrona.layers', 'madrona.layer_manager', 'madrona.studyregion', 'madrona.simplefaq', 'madrona.help', 'madrona.staticmap', 'madrona.screencasts', 'madrona.news', 'madrona.manipulators', 'madrona.kmlapp', 'madrona.features', 'madrona.user_profile', 'madrona.unit_converter', 'madrona.openid', 'madrona.async', 'madrona.loadshp', 'madrona.bookmarks', 'registration', 'south', 'djcelery', 'djkombu', ##### Optional Apps #### #'madrona.heatmap', #'madrona.analysistools', #'madrona.raster_stats', #'madrona.xyquery', #'madrona.group_management', )
'south', 'registration', 'flatblocks', 'django.contrib.auth', 'django.contrib.admin', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.gis' ]
GROUP_REGISTERED_BY_WEB = 'registered_by_web' # Group name assigned to users who register using the web interface
MEDIA_ROOT = os.path.realpath(os.path.dirname(os.path.abspath(__file__)) + '/../../media/')
# URLS STATIC_URL = '/media/'
# KML SETTINGS KML_ALTITUDEMODE_DEFAULT = 'absolute'
# SHARING SETTINGS SHARING_TO_STAFF_GROUPS = ['Share with Staff']
# TEMPLATE SETTINGS "django.contrib.auth.context_processors.auth", "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.media", "django.contrib.messages.context_processors.messages", 'django.core.context_processors.request', 'madrona.openid.context_processors.authopenid', ) 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', )
# ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS
TEMPLATE_DEBUG = DEBUG
#Screencast videos, images, and video-player locations VIDEO_PLAYER = MEDIA_URL + 'screencasts/video_player/player-viral.swf'
# This path is used by madrona.layers.views to handle requests initiated by a UserLayerList USER_DATA_ROOT = '/mnt/EBS_userdatalayers/display'
SOUTH_TESTS_MIGRATE = False
#Celery and djkombu settings (for server-side asynchronous process handling) BROKER_BACKEND = "djkombu.transport.DatabaseTransport" # Make sure to add any modules containing tasks #CELERY_IMPORT = ('myapp.tasks',) djcelery.setup_loader()
#The following is used to determine whether the async app (and celery) should be used ASYNC_IS_DISABLED = False
AWS_USE_S3_MEDIA = False # Set true IF you want to use S3 to serve static media. # If true, need to set AWS_ACCESS_KEY, AWS_SECRET_KEY and AWS_MEDIA_BUCKET and MEDIA_URL
OPENID_ENABLED = False
LOG_FILE = None # write log to stdout
PRIVATE_KML_ROOT = '/mnt/EBS_superoverlays/display'
'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'example', 'USER': 'postgres', } }
# UNIX username which owns the wsgi process. # Used to set ownership of MEDIA_ROOT # None implies MEDIA_ROOT is owned by whoever runs the install_media command WSGI_USER = None
'default': { #'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', #'LOCATION': '/tmp/django-cache', 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', } }
HELP_EMAIL = 'help@madrona.org'
STATICMAP_AUTOZOOM = True
'self': 'View', }
# Do you want bookmarks to show up in the kmleditor (True) or just the tool panel (False)? BOOKMARK_ANON_LIMIT = (100, timedelta(minutes=30)) # Limit to 100 anon bookmarks per IP every 30 minutes
ENFORCE_SUPPORTED_BROWSER = True
STARSPAN_REMOVE_TMP = True
POSTGIS_TEMPLATE = 'template1'
LOGIN_REDIRECT_URL = reverse_lazy('map')
GEOJSON_SRID = None # None -> use GEOMETRY_DB_SRID |