Skip to content

Commit

Permalink
Merge pull request #182 from brunoamaral/177-django-error-after-setup…
Browse files Browse the repository at this point in the history
…py-runs-successfully

get domain from env variables
  • Loading branch information
brunoamaral authored Jul 11, 2022
2 parents 8db8816 + c4c45e7 commit 5d22414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/admin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['0.0.0.0','localhost','167.71.38.42','api.gregory-ms.com','manage.gregory-ms.com']
CSRF_TRUSTED_ORIGINS = ['https://api.gregory-ms.com','https://manage.gregory-ms.com']
ALLOWED_HOSTS = ['0.0.0.0','localhost','167.71.38.42','api.'+ os.environ.get('DOMAIN_NAME'),'manage.'+ os.environ.get('DOMAIN_NAME')]
CSRF_TRUSTED_ORIGINS = ['https://api.'+ os.environ.get('DOMAIN_NAME'),'https://manage.'+ os.environ.get('DOMAIN_NAME')]

# Application definition

Expand Down

0 comments on commit 5d22414

Please sign in to comment.