import dj_database_url
from .default import *

DEBUG = False

SECRET_KEY = os.getenv('DJANGO_SECRET_KEY', None)

ALLOWED_HOSTS = ['agendaodonto.herokuapp.com']

DATABASES = {'default': dj_database_url.config()}

CORS_ORIGIN_WHITELIST = (
    'agendaodonto.com',
    'backend.agendaodonto.com',
)

DJOSER['DOMAIN'] = 'agendaodonto.com'

# Celery Settings
CELERY_BROKER_URL = os.getenv('RABBITMQ_URL', None)
CELERY_BROKER_HEARTBEAT = None

import dj_database_url
from .default import *

DEBUG = False

SECRET_KEY = os.getenv('DJANGO_SECRET_KEY', None)

ALLOWED_HOSTS = ['agendaodonto.herokuapp.com']

DATABASES = {'default': dj_database_url.config()}

CORS_ORIGIN_WHITELIST = (
    'https://agendaodonto.com',
    'https://backend.agendaodonto.com',
)

DJOSER['DOMAIN'] = 'agendaodonto.com'

# Celery Settings
CELERY_BROKER_URL = os.getenv('RABBITMQ_URL', None)
CELERY_BROKER_HEARTBEAT = None

--- 
+++ 
@@ -10,8 +10,8 @@
 DATABASES = {'default': dj_database_url.config()}
 
 CORS_ORIGIN_WHITELIST = (
-    'https://agendaodonto.com',
-    'https://backend.agendaodonto.com',
+    'agendaodonto.com',
+    'backend.agendaodonto.com',
 )
 
 DJOSER['DOMAIN'] = 'agendaodonto.com'
fix: Remove the scheme from the domain
