seshat.settings.base
The base settings for the Seshat project.
They are used by the development and production environment settings, available in seshat.settings.local and seshat.settings.production.
Attributes
AUTH_PASSWORD_VALIDATORS defines the validators that are used to check the strength of passwords. |
|
CORS_ALLOWED_ORIGINS defines the allowed origins for Cross-Origin Resource Sharing (CORS). |
|
CSRF_TRUSTED_ORIGINS defines the trusted origins for Cross-Site Request Forgery (CSRF) protection. |
|
Database settings for local development. |
|
DEFAULT_AUTO_FIELD is set to django.db.models.BigAutoField. |
|
The email address from which the emails will be sent. |
|
GEOGRAPHIC_DB is set to True to enable the geographic database. |
|
INTERNAL_IPS defines the list of IP addresses that are allowed to visit the debug toolbar. |
|
LANGUAGE_CODE is set to en-us by default. |
|
LOCALE_PATHS defines the directories in which Django will search for translation files. |
|
The absolute path to the directory where uploaded files will be saved. |
|
The URL to use when referring to media files located in the media directory. |
|
MIDDLEWARE defines the list of middleware classes that Django will use. |
|
REST_FRAMEWORK defines the default settings for the Django REST framework. |
|
ROOT_URLCONF is set to the URL configuration for the Seshat project. |
|
SECURE_CROSS_ORIGIN_OPENER_POLICY is set to None to disable the Cross-Origin Opener Policy. |
|
The environment in which the Seshat application is running. |
|
SOCIALACCOUNT_PROVIDERS defines the social account providers for the Django all-auth package. |
|
Defines the directories in which Django will search for additional static files. |
|
The static files storage is set to the Django static files storage for testing environments. |
|
The static files storage is set to the Django static files storage for testing environments. |
|
The absolute path to the directory where collectstatic will collect static files for deployment. |
|
The URL to use when referring to static files located in the static directory. |
|
TEMPLATES defines the list of engines that Django can use to render templates. |
|
TIME_ZONE is set to UTC by default. |
|
USE_I18N is set to True to enable internationalization. |
|
USE_L10N is set to True to enable localization. |
|
USE_TZ is set to True to enable time zone support. |
|
WSGI_APPLICATION is set to the WSGI application for the Seshat project. |
|
Module Contents
- seshat.settings.base.ACCOUNT_AUTHENTICATION_METHOD = 'email'
- seshat.settings.base.ACCOUNT_EMAIL_REQUIRED = True
- seshat.settings.base.ACCOUNT_LOGOUT_REDIRECT = 'seshat-index'
- seshat.settings.base.ACCOUNT_USERNAME_REQUIRED = False
- seshat.settings.base.ALLOWED_HOSTS = ['seshatdb.herokuapp.com', 'www.127.0.0.1', 'majidbenam.com', 'www.majidbenam.com',...
- seshat.settings.base.AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend']
- seshat.settings.base.AUTH_PASSWORD_VALIDATORS
AUTH_PASSWORD_VALIDATORS defines the validators that are used to check the strength of passwords.
- seshat.settings.base.BASE_DIR
- seshat.settings.base.CESIUM_ION_ACCESS_TOKEN
- seshat.settings.base.CORS_ALLOWED_ORIGINS = ['http://localhost:3000', 'http://127.0.0.1:3000']
CORS_ALLOWED_ORIGINS defines the allowed origins for Cross-Origin Resource Sharing (CORS).
- seshat.settings.base.CSRF_TRUSTED_ORIGINS = ['https://majidbenam.com', 'http://*.majidbenam.com', 'http://majidbenam.com',...
CSRF_TRUSTED_ORIGINS defines the trusted origins for Cross-Site Request Forgery (CSRF) protection.
- seshat.settings.base.DATABASES
Database settings for local development.
- seshat.settings.base.DEBUG = False
- seshat.settings.base.DEBUG
- seshat.settings.base.DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
DEFAULT_AUTO_FIELD is set to django.db.models.BigAutoField.
- seshat.settings.base.EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
- seshat.settings.base.EMAIL_FROM_USER
The email address from which the emails will be sent.
- seshat.settings.base.GDAL_LIBRARY_PATH = '/opt/homebrew/opt/gdal/lib/libgdal.dylib'
- seshat.settings.base.GEOGRAPHIC_DB = True
GEOGRAPHIC_DB is set to True to enable the geographic database.
- seshat.settings.base.INSTALLED_APPS = ['seshat.apps.accounts', 'django.contrib.admin', 'django.contrib.auth',...
- seshat.settings.base.INTERNAL_IPS = ['127.0.0.1']
INTERNAL_IPS defines the list of IP addresses that are allowed to visit the debug toolbar.
- seshat.settings.base.LANGUAGE_CODE
LANGUAGE_CODE is set to en-us by default.
- seshat.settings.base.LOCALE_PATHS
LOCALE_PATHS defines the directories in which Django will search for translation files.
- seshat.settings.base.LOGGING
- seshat.settings.base.LOGIN_REDIRECT_URL = 'seshat-index'
- seshat.settings.base.MEDIA_ROOT
The absolute path to the directory where uploaded files will be saved.
- seshat.settings.base.MEDIA_URL = '/media/'
The URL to use when referring to media files located in the media directory.
- seshat.settings.base.MESSAGE_TAGS
- seshat.settings.base.MIDDLEWARE = ['django.middleware.security.SecurityMiddleware',...
MIDDLEWARE defines the list of middleware classes that Django will use.
- seshat.settings.base.RECAPTCHA_PUBLIC_KEY
- seshat.settings.base.REST_FRAMEWORK
REST_FRAMEWORK defines the default settings for the Django REST framework.
The default pagination class is set to PageNumberPagination with a page size of 1000.
- seshat.settings.base.ROOT_URLCONF = 'seshat.urls'
ROOT_URLCONF is set to the URL configuration for the Seshat project.
- seshat.settings.base.SECRET_KEY
- seshat.settings.base.SECURE_CROSS_ORIGIN_OPENER_POLICY = None
SECURE_CROSS_ORIGIN_OPENER_POLICY is set to None to disable the Cross-Origin Opener Policy.
- seshat.settings.base.SESHAT_ENVIRONMENT
The environment in which the Seshat application is running.
Note
The value is set to local by default. This value can be changed in the environment variable SESHAT_ENVIRONMENT.
- seshat.settings.base.SITE_ID = 2
- seshat.settings.base.SOCIALACCOUNT_PROVIDERS
SOCIALACCOUNT_PROVIDERS defines the social account providers for the Django all-auth package.
- seshat.settings.base.STATICFILES_DIRS
Defines the directories in which Django will search for additional static files.
- seshat.settings.base.STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
The static files storage is set to the whitenoise storage, which is a compressed manifest static files storage.
- seshat.settings.base.STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
The static files storage is set to the Django static files storage for testing environments.
- Noindex:
- seshat.settings.base.STATIC_ROOT
The absolute path to the directory where collectstatic will collect static files for deployment.
Note
The value set here is the static directory in the base directory of the project.
- seshat.settings.base.STATIC_URL = 'static/'
The URL to use when referring to static files located in the static directory.
- seshat.settings.base.TEMPLATES
TEMPLATES defines the list of engines that Django can use to render templates.
- seshat.settings.base.TIME_ZONE
TIME_ZONE is set to UTC by default.
- seshat.settings.base.USE_I18N = True
USE_I18N is set to True to enable internationalization.
- seshat.settings.base.USE_L10N = True
USE_L10N is set to True to enable localization.
- seshat.settings.base.USE_TZ = True
USE_TZ is set to True to enable time zone support.
- seshat.settings.base.WSGI_APPLICATION = 'seshat.wsgi.application'
WSGI_APPLICATION is set to the WSGI application for the Seshat project.
- seshat.settings.base.local_env_path = '/seshat/settings/.env'