diff --git a/apps/main/methods.py b/apps/main/methods.py index 99d8fc9b..3d4349e4 100644 --- a/apps/main/methods.py +++ b/apps/main/methods.py @@ -54,7 +54,7 @@ def determine_user_site_url(country_code): except Exception: return site_url(schema=settings.SCHEMA_URI, subdomain=settings.DEFAULT_SUBDOMAIN, - domain=settings.DOMAIN_URI) + domain=settings.SITE_DOMAIN_URI) else: return site.site_url diff --git a/apps/main/models.py b/apps/main/models.py index 47e41397..acfe0773 100644 --- a/apps/main/models.py +++ b/apps/main/models.py @@ -142,7 +142,7 @@ class SiteSettings(ProjectBaseMixin): def site_url(self): return methods.site_url(schema=settings.SCHEMA_URI, subdomain=self.subdomain, - domain=settings.DOMAIN_URI) + domain=settings.SITE_DOMAIN_URI) class Feature(ProjectBaseMixin): diff --git a/project/settings/development.py b/project/settings/development.py index f9809cfe..8f67c38a 100644 --- a/project/settings/development.py +++ b/project/settings/development.py @@ -8,4 +8,5 @@ SMS_CODE_SHOW = True SCHEMA_URI = 'http' DEFAULT_SUBDOMAIN = 'www' +SITE_DOMAIN_URI = 'id-east.ru' DOMAIN_URI = 'gm.id-east.ru' diff --git a/project/settings/local.py b/project/settings/local.py index d05f81eb..2858973c 100644 --- a/project/settings/local.py +++ b/project/settings/local.py @@ -9,7 +9,8 @@ USE_CELERY = False SCHEMA_URI = 'http' DEFAULT_SUBDOMAIN = 'www' -DOMAIN_URI = 'testserver.com:8000' +SITE_DOMAIN_URI = 'testserver.com:8000' +DOMAIN_URI = '0.0.0.0:8000' # OTHER SETTINGS API_HOST = '0.0.0.0:8000'