27 lines
690 B
Python
27 lines
690 B
Python
from .base import *
|
|
|
|
DEBUG = True
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql',
|
|
'NAME': config('DB_NAME', default='offer_db'),
|
|
'USER': config('DB_USER', default='postgres'),
|
|
'PASSWORD': config('DB_PASSWORD', default='postgres'),
|
|
'HOST': config('DB_HOST', default='localhost'),
|
|
'PORT': config('DB_PORT', default='5432'),
|
|
}
|
|
}
|
|
|
|
CACHES = {
|
|
'default': {
|
|
'BACKEND': 'django_redis.cache.RedisCache',
|
|
'LOCATION': config('REDIS_URL', default='redis://127.0.0.1:6379/1'),
|
|
}
|
|
}
|
|
|
|
CORS_ALLOW_ALL_ORIGINS = True
|
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|