|
|
|
@ -10,13 +10,12 @@ For the full list of settings and their values, see
|
|
|
|
https://docs.djangoproject.com/en/3.2/ref/settings/
|
|
|
|
https://docs.djangoproject.com/en/3.2/ref/settings/
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
|
|
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production
|
|
|
|
# Quick-start development settings - unsuitable for production
|
|
|
|
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
|
|
|
|
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
|
|
|
|
|
|
|
|
|
|
|
|
@ -28,7 +27,6 @@ DEBUG = os.getenv('DEBUG', False) == 'True'
|
|
|
|
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Application definition
|
|
|
|
# Application definition
|
|
|
|
|
|
|
|
|
|
|
|
INSTALLED_APPS = [
|
|
|
|
INSTALLED_APPS = [
|
|
|
|
@ -79,7 +77,6 @@ TEMPLATES = [
|
|
|
|
|
|
|
|
|
|
|
|
WSGI_APPLICATION = 'postamates.wsgi.application'
|
|
|
|
WSGI_APPLICATION = 'postamates.wsgi.application'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Database
|
|
|
|
# Database
|
|
|
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
|
|
|
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
|
|
|
|
|
|
|
|
|
|
|
|
@ -111,8 +108,6 @@ AUTH_PASSWORD_VALIDATORS = [
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Internationalization
|
|
|
|
# Internationalization
|
|
|
|
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
|
|
|
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
|
|
|
|
|
|
|
|
|
|
|
@ -126,7 +121,6 @@ USE_L10N = True
|
|
|
|
|
|
|
|
|
|
|
|
USE_TZ = True
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Static files (CSS, JavaScript, Images)
|
|
|
|
# Static files (CSS, JavaScript, Images)
|
|
|
|
# https://docs.djangoproject.com/en/3.2/howto/static-files/
|
|
|
|
# https://docs.djangoproject.com/en/3.2/howto/static-files/
|
|
|
|
|
|
|
|
|
|
|
|
@ -140,7 +134,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'django_media')
|
|
|
|
|
|
|
|
|
|
|
|
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|
|
|
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|
|
|
|
|
|
|
|
|
|
|
CORS_ORIGIN_ALLOW_ALL = True # If this is used then `CORS_ORIGIN_WHITELIST` will not have any effect
|
|
|
|
CORS_ORIGIN_ALLOW_ALL = True # If this is used then `CORS_ORIGIN_WHITELIST` will not have any effect
|
|
|
|
CORS_ALLOW_CREDENTIALS = True
|
|
|
|
CORS_ALLOW_CREDENTIALS = True
|
|
|
|
CORS_ORIGIN_ALLOW = True
|
|
|
|
CORS_ORIGIN_ALLOW = True
|
|
|
|
|
|
|
|
|
|
|
|
@ -150,12 +144,12 @@ if os.getenv('local') is not None:
|
|
|
|
GDAL_LIBRARY_PATH = '/opt/homebrew/opt/gdal/lib/libgdal.dylib'
|
|
|
|
GDAL_LIBRARY_PATH = '/opt/homebrew/opt/gdal/lib/libgdal.dylib'
|
|
|
|
GEOS_LIBRARY_PATH = '/opt/homebrew/opt/geos/lib/libgeos_c.dylib'
|
|
|
|
GEOS_LIBRARY_PATH = '/opt/homebrew/opt/geos/lib/libgeos_c.dylib'
|
|
|
|
|
|
|
|
|
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' #new
|
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
|
|
|
EMAIL_HOST = 'smtp.yandex.ru' #new
|
|
|
|
EMAIL_HOST = os.getenv('EMAIL_HOST', 'smtp.yandex.ru')
|
|
|
|
EMAIL_PORT = 587 #new
|
|
|
|
EMAIL_PORT = os.getenv('EMAIL_PORT', 587)
|
|
|
|
EMAIL_HOST_USER = 'noreply@spatiality.website' #new
|
|
|
|
EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER', 'noreply@spatiality.website')
|
|
|
|
EMAIL_HOST_PASSWORD = "spatialitypass321" #new
|
|
|
|
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD', "spatialitypass321")
|
|
|
|
EMAIL_USE_TLS = True #new
|
|
|
|
EMAIL_USE_TLS = True
|
|
|
|
FRONTEND_URL = os.getenv('REACT_APP_DOMAIN_URL', 'http://localhost:3000/')
|
|
|
|
FRONTEND_URL = os.getenv('REACT_APP_DOMAIN_URL', 'http://localhost:3000/')
|
|
|
|
REST_REGISTRATION = {
|
|
|
|
REST_REGISTRATION = {
|
|
|
|
'REGISTER_VERIFICATION_ENABLED': True,
|
|
|
|
'REGISTER_VERIFICATION_ENABLED': True,
|
|
|
|
|