Skip to content

Commit

Permalink
added vhost to settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ayanchoudhary committed Aug 8, 2019
1 parent 9516706 commit e351219
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions studyportal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@

ALLOWED_HOSTS = [
'localhost',
'nexus.sdslabs.local'
'nexus.sdslabs.local',
'127.0.0.1'
]


Expand All @@ -52,7 +53,8 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_api',
'rest_framework'
'rest_framework',
'corsheaders',
]

MIDDLEWARE = [
Expand All @@ -63,10 +65,15 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'corsheaders.middleware.CorsMiddleware',
]

ROOT_URLCONF = 'studyportal.urls'

CORS_ORIGIN_WHITELIST = (
'studyportal.sdslabs.local',
)

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
Expand Down

0 comments on commit e351219

Please sign in to comment.