Dev
hypha.settings.dev
¶
FILE_ALLOWED_EXTENSIONS
module-attribute
¶
FILE_ALLOWED_EXTENSIONS = ['doc', 'docx', 'odp', 'ods', 'odt', 'pdf', 'ppt', 'pptx', 'rtf', 'txt', 'xls', 'xlsx']
FILE_ACCEPT_ATTR_VALUE
module-attribute
¶
FILE_ACCEPT_ATTR_VALUE = join(['.' + ext for ext in FILE_ALLOWED_EXTENSIONS])
GIVE_STAFF_LEAD_PERMS
module-attribute
¶
SUBMISSIONS_ARCHIVED_VIEW_ACCESS_STAFF
module-attribute
¶
SUBMISSIONS_ARCHIVED_VIEW_ACCESS_STAFF_ADMIN
module-attribute
¶
SUBMISSIONS_ARCHIVED_VIEW_ACCESS_STAFF_ADMIN = bool('SUBMISSIONS_ARCHIVED_ACCESS_STAFF_ADMIN', True)
SUBMISSION_TITLE_TEXT_TEMPLATE
module-attribute
¶
SUBMISSION_TITLE_TEXT_TEMPLATE = env('SUBMISSION_TITLE_TEMPLATE', default='{title} (#{public_id})')
SUBMISSIONS_ARCHIVED_ACCESS_STAFF
module-attribute
¶
SUBMISSIONS_ARCHIVED_ACCESS_STAFF_ADMIN
module-attribute
¶
SEND_READY_FOR_REVIEW
module-attribute
¶
STAFF_UPLOAD_CONTRACT
module-attribute
¶
SLACK_DESTINATION_ROOM
module-attribute
¶
SLACK_DESTINATION_ROOM_COMMENTS
module-attribute
¶
SLACK_ENDPOINT_URL
module-attribute
¶
ACTIVITY_DIGEST_RECIPIENT_EMAILS
module-attribute
¶
HIDE_IDENTITY_FROM_REVIEWERS
module-attribute
¶
SUBMISSIONS_DRAFT_ACCESS_STAFF
module-attribute
¶
SUBMISSIONS_DRAFT_ACCESS_STAFF_ADMIN
module-attribute
¶
SUBMISSIONS_EXPORT_ACCESS_STAFF
module-attribute
¶
SUBMISSIONS_EXPORT_ACCESS_STAFF_ADMIN
module-attribute
¶
SUBMISSIONS_TABLE_EXCLUDED_FIELDS
module-attribute
¶
SUBMISSIONS_TABLE_EXCLUDED_FIELDS = list('SUBMISSIONS_TABLE_EXCLUDED_FIELDS', ['organization_name'])
TRANSITION_AFTER_ASSIGNED
module-attribute
¶
TRANSITION_AFTER_REVIEWS
module-attribute
¶
REVIEW_VISIBILITY_DEFAULT
module-attribute
¶
SUBMISSION_PREVIEW_REQUIRED
module-attribute
¶
DATABASES
module-attribute
¶
DATABASES = {'default': config(default=f'postgres:///{APP_NAME}', conn_max_age=600, conn_health_checks=True)}
APPLICATION_TRANSLATIONS_ENABLED
module-attribute
¶
PASSWORD_RESET_TIMEOUT
module-attribute
¶
PASSWORDLESS_LOGIN_TIMEOUT
module-attribute
¶
FORCE_LOGIN_FOR_APPLICATION
module-attribute
¶
PASSWORDLESS_SIGNUP_TIMEOUT
module-attribute
¶
TEMPLATES
module-attribute
¶
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [join(PROJECT_DIR, 'templates_custom'), join(PROJECT_DIR, 'templates'), join(PROJECT_DIR, 'apply', 'templates')], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'wagtail.contrib.settings.context_processors.settings', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect', 'hypha.apply.projects.context_processors.projects_enabled', 'hypha.cookieconsent.context_processors.cookies_accepted', 'hypha.core.context_processors.global_vars'], 'builtins': ['django_web_components.templatetags.components']}}]
CACHE_CONTROL_S_MAXAGE
module-attribute
¶
CACHES
module-attribute
¶
CACHES = {'default': {'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'database_cache'}}
STATICFILES_STORAGE
module-attribute
¶
STATICFILES_DIRS
module-attribute
¶
STATICFILES_DIRS = [join(PROJECT_DIR, 'static_compiled'), join(PROJECT_DIR, '../public')]
WAGTAILIMAGES_FEATURE_DETECTION_ENABLED
module-attribute
¶
WAGTAIL_USER_EDIT_FORM
module-attribute
¶
WAGTAIL_USER_CREATION_FORM
module-attribute
¶
WAGTAILADMIN_RICH_TEXT_EDITORS
module-attribute
¶
WAGTAILADMIN_RICH_TEXT_EDITORS = {'default': {'WIDGET': 'wagtail.admin.rich_text.DraftailRichTextArea', 'OPTIONS': {'features': ['bold', 'italic', 'h1', 'h2', 'h3', 'h4', 'h5', 'ol', 'ul', 'link']}}}
WAGTAILSEARCH_BACKENDS
module-attribute
¶
WAGTAILFRONTENDCACHE
module-attribute
¶
WAGTAILFRONTENDCACHE = {'cloudflare': {'BACKEND': 'wagtail.contrib.frontend_cache.backends.CloudflareBackend', 'BEARER_TOKEN': str('CLOUDFLARE_BEARER_TOKEN'), 'ZONEID': str('CLOUDFLARE_API_ZONEID')}}
SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS
module-attribute
¶
SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS = list('SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS', STAFF_EMAIL_DOMAINS)
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY
module-attribute
¶
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET
module-attribute
¶
SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL
module-attribute
¶
SOCIAL_AUTH_PIPELINE
module-attribute
¶
SOCIAL_AUTH_PIPELINE = ('social_core.pipeline.social_auth.social_details', 'social_core.pipeline.social_auth.social_uid', 'social_core.pipeline.social_auth.auth_allowed', 'social_core.pipeline.social_auth.social_user', 'social_core.pipeline.social_auth.associate_by_email', 'social_core.pipeline.user.create_user', 'social_core.pipeline.social_auth.associate_user', 'social_core.pipeline.social_auth.load_extra_data', 'social_core.pipeline.user.user_details')
NH3_ALLOWED_TAGS
module-attribute
¶
NH3_ALLOWED_TAGS = ['a', 'b', 'big', 'blockquote', 'br', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'ins', 'li', 'ol', 'p', 'pre', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'th', 'thead', 'tr', 'ul']
NH3_ALLOWED_ATTRIBUTES
module-attribute
¶
NH3_ALLOWED_ATTRIBUTES = {'*': ['class', 'colspan', 'href', 'rowspan', 'target', 'title', 'width', 'data-tippy-content']}
HIJACK_DECORATOR
module-attribute
¶
HIJACK_PERMISSION_CHECK
module-attribute
¶
DEFAULT_FILE_STORAGE
module-attribute
¶
PRIVATE_FILE_STORAGE
module-attribute
¶
AWS_PUBLIC_BUCKET_NAME
module-attribute
¶
AWS_PUBLIC_BUCKET_NAME = str('AWS_PUBLIC_BUCKET_NAME', AWS_STORAGE_BUCKET_NAME)
AWS_PRIVATE_BUCKET_NAME
module-attribute
¶
AWS_PRIVATE_BUCKET_NAME = str('AWS_PRIVATE_BUCKET_NAME', AWS_STORAGE_BUCKET_NAME)
AWS_PRIVATE_CUSTOM_DOMAIN
module-attribute
¶
AWS_QUERYSTRING_EXPIRE
module-attribute
¶
AWS_PUBLIC_CUSTOM_DOMAIN
module-attribute
¶
AWS_MIGRATION_BUCKET_NAME
module-attribute
¶
AWS_MIGRATION_ACCESS_KEY_ID
module-attribute
¶
AWS_MIGRATION_SECRET_ACCESS_KEY
module-attribute
¶
APPLY_NAV_SUBMISSIONS_ITEMS
module-attribute
¶
APPLY_NAV_PROJECTS_ITEMS
module-attribute
¶
BASIC_AUTH_WHITELISTED_HTTP_HOSTS
module-attribute
¶
BASIC_AUTH_WHITELISTED_IP_NETWORKS
module-attribute
¶
SESSION_COOKIE_AGE_LONG
module-attribute
¶
SECURE_PROXY_SSL_HEADER
module-attribute
¶
SECURE_BROWSER_XSS_FILTER
module-attribute
¶
SECURE_CONTENT_TYPE_NOSNIFF
module-attribute
¶
REST_FRAMEWORK
module-attribute
¶
REST_FRAMEWORK = {'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'PAGE_SIZE': 10, 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication'), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated')}
INTACCT_SENDER_PASSWORD
module-attribute
¶
ENABLE_GOOGLE_TRANSLATE
module-attribute
¶
SENTRY_TRACES_SAMPLE_RATE
module-attribute
¶
DATETIME_INPUT_FORMATS
module-attribute
¶
DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%dT%H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y']
CUSTOM_AUTH_BACKEND
module-attribute
¶
AUTHENTICATION_BACKENDS
module-attribute
¶
AUTHENTICATION_BACKENDS = ('social_core.backends.google.GoogleOAuth2', CUSTOM_AUTH_BACKEND)
ALLOWED_HOSTS
module-attribute
¶
LOGGING
module-attribute
¶
LOGGING = {'version': 1, 'disable_existing_loggers': True, 'formatters': {'standard': {'format': '[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s', 'datefmt': '%Y-%m-%d %H:%M:%S'}}, 'handlers': {'null': {'level': 'DEBUG', 'class': 'logging.NullHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': BASE_DIR + '/var/log/debug.log', 'maxBytes': 1000000, 'backupCount': 2, 'formatter': 'standard'}}, 'loggers': {'django': {'handlers': ['logfile'], 'level': 'INFO', 'propagate': True}, 'django.db.backends': {'handlers': ['logfile'], 'level': 'INFO', 'propagate': False}, 'django.request': {'handlers': ['logfile'], 'level': 'DEBUG', 'propagate': False}, 'django.template': {'handlers': ['logfile'], 'level': 'INFO', 'propagate': False}, 'django.security': {'handlers': ['logfile'], 'level': 'DEBUG', 'propagate': False}, 'wagtail': {'handlers': ['logfile'], 'level': 'DEBUG'}, 'hypha': {'handlers': ['logfile'], 'level': 'DEBUG'}}}
MIDDLEWARE
module-attribute
¶
MIDDLEWARE = ['debug_toolbar.middleware.DebugToolbarMiddleware', *MIDDLEWARE]
DEBUG_TOOLBAR_CONFIG
module-attribute
¶
DEBUG_TOOLBAR_CONFIG = {'DISABLE_PANELS': {'debug_toolbar.panels.versions.VersionsPanel', 'debug_toolbar.panels.timer.TimerPanel', 'debug_toolbar.panels.settings.SettingsPanel', 'debug_toolbar.panels.headers.HeadersPanel', 'debug_toolbar.panels.request.RequestPanel', 'debug_toolbar.panels.sql.SQLPanel', 'debug_toolbar.panels.staticfiles.StaticFilesPanel', 'debug_toolbar.panels.templates.TemplatesPanel', 'debug_toolbar.panels.cache.CachePanel', 'debug_toolbar.panels.signals.SignalsPanel', 'debug_toolbar.panels.logging.LoggingPanel', 'debug_toolbar.panels.redirects.RedirectsPanel', 'debug_toolbar.panels.profiling.ProfilingPanel'}, 'SHOW_COLLAPSED': True}