|
|
|
|
@ -44,6 +44,7 @@ INSTALLED_APPS = [
|
|
|
|
|
'rest_framework',
|
|
|
|
|
'django_json_widget',
|
|
|
|
|
'django.contrib.gis',
|
|
|
|
|
'rest_registration',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
MIDDLEWARE = [
|
|
|
|
|
@ -147,4 +148,22 @@ CORS_ORIGIN_ALLOW = True
|
|
|
|
|
DB_URL = f"postgresql://{os.getenv('POSTGRES_USER', 'postgres')}:{os.getenv('POSTGRES_PASSWORD', 'postgres')}@{os.getenv('POSTGRES_HOST', 'postgres')}:{os.getenv('POSTGRES_PORT', 'postgres')}/{os.getenv('POSTGRES_DB', 'postgres')}"
|
|
|
|
|
if os.getenv('local') is not None:
|
|
|
|
|
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_HOST = 'smtp.yandex.ru' #new
|
|
|
|
|
EMAIL_PORT = 587 #new
|
|
|
|
|
EMAIL_HOST_USER = 'noreply@spatiality.website' #new
|
|
|
|
|
EMAIL_HOST_PASSWORD = "spatialitypass321" #new
|
|
|
|
|
EMAIL_USE_TLS = True #new
|
|
|
|
|
FRONTEND_URL = 'https://app.property.spatiality.website/'
|
|
|
|
|
REST_REGISTRATION = {
|
|
|
|
|
'REGISTER_VERIFICATION_ENABLED': True,
|
|
|
|
|
'RESET_PASSWORD_VERIFICATION_ENABLED': False,
|
|
|
|
|
'REGISTER_EMAIL_VERIFICATION_ENABLED': True,
|
|
|
|
|
'REGISTER_VERIFICATION_URL': f'{FRONTEND_URL}verify-user/',
|
|
|
|
|
'RESET_PASSWORD_VERIFICATION_URL': f'{FRONTEND_URL}reset-password/',
|
|
|
|
|
'REGISTER_EMAIL_VERIFICATION_URL': f'{FRONTEND_URL}verify-email/',
|
|
|
|
|
|
|
|
|
|
'VERIFICATION_FROM_EMAIL': 'noreply@spatiality.website',
|
|
|
|
|
}
|