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

ACCOUNT_AUTHENTICATION_METHOD

ACCOUNT_EMAIL_REQUIRED

ACCOUNT_LOGOUT_REDIRECT

ACCOUNT_USERNAME_REQUIRED

ALLOWED_HOSTS

AUTHENTICATION_BACKENDS

AUTH_PASSWORD_VALIDATORS

AUTH_PASSWORD_VALIDATORS defines the validators that are used to check the strength of passwords.

BASE_DIR

CESIUM_ION_ACCESS_TOKEN

CORS_ALLOWED_ORIGINS

CORS_ALLOWED_ORIGINS defines the allowed origins for Cross-Origin Resource Sharing (CORS).

CSRF_TRUSTED_ORIGINS

CSRF_TRUSTED_ORIGINS defines the trusted origins for Cross-Site Request Forgery (CSRF) protection.

DATABASES

Database settings for local development.

DEBUG

DEBUG

DEFAULT_AUTO_FIELD

DEFAULT_AUTO_FIELD is set to django.db.models.BigAutoField.

EMAIL_BACKEND

EMAIL_FROM_USER

The email address from which the emails will be sent.

GDAL_LIBRARY_PATH

GEOGRAPHIC_DB

GEOGRAPHIC_DB is set to True to enable the geographic database.

INSTALLED_APPS

INTERNAL_IPS

INTERNAL_IPS defines the list of IP addresses that are allowed to visit the debug toolbar.

LANGUAGE_CODE

LANGUAGE_CODE is set to en-us by default.

LOCALE_PATHS

LOCALE_PATHS defines the directories in which Django will search for translation files.

LOGGING

LOGIN_REDIRECT_URL

MEDIA_ROOT

The absolute path to the directory where uploaded files will be saved.

MEDIA_URL

The URL to use when referring to media files located in the media directory.

MESSAGE_TAGS

MIDDLEWARE

MIDDLEWARE defines the list of middleware classes that Django will use.

RECAPTCHA_PUBLIC_KEY

REST_FRAMEWORK

REST_FRAMEWORK defines the default settings for the Django REST framework.

ROOT_URLCONF

ROOT_URLCONF is set to the URL configuration for the Seshat project.

SECRET_KEY

SECURE_CROSS_ORIGIN_OPENER_POLICY

SECURE_CROSS_ORIGIN_OPENER_POLICY is set to None to disable the Cross-Origin Opener Policy.

SESHAT_ENVIRONMENT

The environment in which the Seshat application is running.

SITE_ID

SOCIALACCOUNT_PROVIDERS

SOCIALACCOUNT_PROVIDERS defines the social account providers for the Django all-auth package.

STATICFILES_DIRS

Defines the directories in which Django will search for additional static files.

STATICFILES_STORAGE

The static files storage is set to the Django static files storage for testing environments.

STATICFILES_STORAGE

The static files storage is set to the Django static files storage for testing environments.

STATIC_ROOT

The absolute path to the directory where collectstatic will collect static files for deployment.

STATIC_URL

The URL to use when referring to static files located in the static directory.

TEMPLATES

TEMPLATES defines the list of engines that Django can use to render templates.

TIME_ZONE

TIME_ZONE is set to UTC by default.

USE_I18N

USE_I18N is set to True to enable internationalization.

USE_L10N

USE_L10N is set to True to enable localization.

USE_TZ

USE_TZ is set to True to enable time zone support.

WSGI_APPLICATION

WSGI_APPLICATION is set to the WSGI application for the Seshat project.

local_env_path

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'