from ._base import *

SITE_PUBLIC_PORT = None  # Default: SITE_PORT

# DJANGO ######################################################################

CACHES['default'].update({
    # 'BACKEND': 'django_redis.cache.RedisCache',
    'BACKEND': 'redis_lock.django_cache.RedisCache',
    'LOCATION': 'redis://redis:6379/1',
})

# EMAIL_HOST = ''
# EMAIL_HOST_USER = ''

LOGGING['handlers']['logfile']['backupCount'] = 100

# CELERY EMAIL ################################################################

CELERY_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

# STORAGES ####################################################################

# AWS_ACCESS_KEY_ID = ''
# AWS_STORAGE_BUCKET_NAME = ''
ENABLE_S3_MEDIA = True

from ._base import *

SITE_PUBLIC_PORT = None  # Default: SITE_PORT

# DJANGO ######################################################################

CACHES['default'].update({
    # 'BACKEND': 'django_redis.cache.RedisCache',
    'BACKEND': 'redis_lock.django_cache.RedisCache',
    'LOCATION': 'redis://redis:6379/1',
})

LOGGING['handlers']['logfile']['backupCount'] = 100

# CELERY EMAIL ################################################################

CELERY_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

# STORAGES ####################################################################

ENABLE_S3_MEDIA = True

Remove vestigial hard coded production settings. These should be defined in a dotenv file, now.
Remove vestigial hard coded production settings. These should be defined in a dotenv file, now.

  from ._base import *
  
  SITE_PUBLIC_PORT = None  # Default: SITE_PORT
  
  # DJANGO ######################################################################
  
  CACHES['default'].update({
      # 'BACKEND': 'django_redis.cache.RedisCache',
      'BACKEND': 'redis_lock.django_cache.RedisCache',
      'LOCATION': 'redis://redis:6379/1',
  })
  
- # EMAIL_HOST = ''
- # EMAIL_HOST_USER = ''
- 
  LOGGING['handlers']['logfile']['backupCount'] = 100
  
  # CELERY EMAIL ################################################################
  
  CELERY_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  
  # STORAGES ####################################################################
  
- # AWS_ACCESS_KEY_ID = ''
- # AWS_STORAGE_BUCKET_NAME = ''
  ENABLE_S3_MEDIA = True
  
Remove vestigial hard coded production settings. These should be defined in a dotenv file, now.
## Code Before:
from ._base import *

SITE_PUBLIC_PORT = None  # Default: SITE_PORT

# DJANGO ######################################################################

CACHES['default'].update({
    # 'BACKEND': 'django_redis.cache.RedisCache',
    'BACKEND': 'redis_lock.django_cache.RedisCache',
    'LOCATION': 'redis://redis:6379/1',
})

# EMAIL_HOST = ''
# EMAIL_HOST_USER = ''

LOGGING['handlers']['logfile']['backupCount'] = 100

# CELERY EMAIL ################################################################

CELERY_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

# STORAGES ####################################################################

# AWS_ACCESS_KEY_ID = ''
# AWS_STORAGE_BUCKET_NAME = ''
ENABLE_S3_MEDIA = True

## Instruction:
Remove vestigial hard coded production settings. These should be defined in a dotenv file, now.
## Code After:
from ._base import *

SITE_PUBLIC_PORT = None  # Default: SITE_PORT

# DJANGO ######################################################################

CACHES['default'].update({
    # 'BACKEND': 'django_redis.cache.RedisCache',
    'BACKEND': 'redis_lock.django_cache.RedisCache',
    'LOCATION': 'redis://redis:6379/1',
})

LOGGING['handlers']['logfile']['backupCount'] = 100

# CELERY EMAIL ################################################################

CELERY_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

# STORAGES ####################################################################

ENABLE_S3_MEDIA = True
