Use a django setting to get PDC links straightened out.

This commit is contained in:
Ralph Bean 2016-05-13 18:37:00 +00:00
parent b10b32eec5
commit afc29d11ef

View file

@ -101,6 +101,9 @@ DATABASES = {
REST_API_URL = 'rest_api/'
REST_API_VERSION = 'v1'
# https://github.com/product-definition-center/product-definition-center/issues/352
USE_X_FORWARDED_HOST = True
BROWSABLE_DOCUMENT_MACROS = {
# need to be rewrite with the real host name when deploy.
'HOST_NAME': 'http://{{ inventory_hostname }}:80',