Skip to content

Commit

Permalink
bug: corrigindo deplou
Browse files Browse the repository at this point in the history
render
  • Loading branch information
Bertolazi committed Dec 12, 2023
1 parent c2cc00d commit cad9c49
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Cadastro/cadastros/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"""

from pathlib import Path
import os



Expand All @@ -22,12 +23,14 @@
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-4$)7&ygj!%q*h_%-&ijr-t2&iba9-(%w1hmz@2*z&r!9wtyo_8'
SECRET_KEY = os.environ.get('SECRET_KEY', default='django-insecure-4$)7&ygj!%q*h_%-&ijr-t2&iba9-(%w1hmz@2*z&r!9wtyo_8')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = 'RENDER' not in os.environ

ALLOWED_HOSTS = []
# RENDER_EXTERNAL_HOSTNAME = os.environ.get('https://sportlifr.onrender.com')
# if RENDER_EXTERNAL_HOSTNAME: ALLOWED_HOSTS.append(RENDER_EXTERNAL_HOSTNAME)


# Application definition
Expand All @@ -43,6 +46,7 @@
'user_client',
'user_funcionario',
'user_login',
'render.apps.RenderConfig'
# 'user_client.models',
# 'user_client.models.Cliente',
]
Expand Down

0 comments on commit cad9c49

Please sign in to comment.