diff --git a/backend/RateMyCourse/__pycache__/__init__.cpython-36.pyc b/backend/RateMyCourse/__pycache__/__init__.cpython-36.pyc index e2816b7..a574410 100644 Binary files a/backend/RateMyCourse/__pycache__/__init__.cpython-36.pyc and b/backend/RateMyCourse/__pycache__/__init__.cpython-36.pyc differ diff --git a/backend/RateMyCourse/__pycache__/settings.cpython-36.pyc b/backend/RateMyCourse/__pycache__/settings.cpython-36.pyc index d29b11a..8e7d0e8 100644 Binary files a/backend/RateMyCourse/__pycache__/settings.cpython-36.pyc and b/backend/RateMyCourse/__pycache__/settings.cpython-36.pyc differ diff --git a/backend/RateMyCourse/__pycache__/urls.cpython-36.pyc b/backend/RateMyCourse/__pycache__/urls.cpython-36.pyc index 7269e2c..1caf096 100644 Binary files a/backend/RateMyCourse/__pycache__/urls.cpython-36.pyc and b/backend/RateMyCourse/__pycache__/urls.cpython-36.pyc differ diff --git a/backend/RateMyCourse/__pycache__/wsgi.cpython-36.pyc b/backend/RateMyCourse/__pycache__/wsgi.cpython-36.pyc index 565be6c..ebe18f9 100644 Binary files a/backend/RateMyCourse/__pycache__/wsgi.cpython-36.pyc and b/backend/RateMyCourse/__pycache__/wsgi.cpython-36.pyc differ diff --git a/backend/RateMyCourse/settings.py b/backend/RateMyCourse/settings.py index 03b8eff..626db12 100644 --- a/backend/RateMyCourse/settings.py +++ b/backend/RateMyCourse/settings.py @@ -31,6 +31,7 @@ ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ + 'corsheaders', 'postings', 'django.contrib.admin', 'django.contrib.auth', @@ -46,6 +47,8 @@ MIDDLEWARE = [ 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', + 'corsheaders.middleware.CorsMiddleware', + 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', @@ -71,6 +74,7 @@ TEMPLATES = [ WSGI_APPLICATION = 'RateMyCourse.wsgi.application' +CORS_ORIGIN_ALLOW_ALL = True # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases diff --git a/backend/postings/__pycache__/__init__.cpython-36.pyc b/backend/postings/__pycache__/__init__.cpython-36.pyc index 6a6293f..0e233cf 100644 Binary files a/backend/postings/__pycache__/__init__.cpython-36.pyc and b/backend/postings/__pycache__/__init__.cpython-36.pyc differ diff --git a/backend/postings/__pycache__/admin.cpython-36.pyc b/backend/postings/__pycache__/admin.cpython-36.pyc index 456a998..358d84f 100644 Binary files a/backend/postings/__pycache__/admin.cpython-36.pyc and b/backend/postings/__pycache__/admin.cpython-36.pyc differ diff --git a/backend/postings/__pycache__/models.cpython-36.pyc b/backend/postings/__pycache__/models.cpython-36.pyc index 0f6adad..4631b3f 100644 Binary files a/backend/postings/__pycache__/models.cpython-36.pyc and b/backend/postings/__pycache__/models.cpython-36.pyc differ diff --git a/backend/postings/api/__pycache__/__init__.cpython-36.pyc b/backend/postings/api/__pycache__/__init__.cpython-36.pyc index 4901fdb..9bff942 100644 Binary files a/backend/postings/api/__pycache__/__init__.cpython-36.pyc and b/backend/postings/api/__pycache__/__init__.cpython-36.pyc differ diff --git a/backend/postings/api/__pycache__/serializers.cpython-36.pyc b/backend/postings/api/__pycache__/serializers.cpython-36.pyc index 10d2485..201319d 100644 Binary files a/backend/postings/api/__pycache__/serializers.cpython-36.pyc and b/backend/postings/api/__pycache__/serializers.cpython-36.pyc differ diff --git a/backend/postings/api/__pycache__/urls.cpython-36.pyc b/backend/postings/api/__pycache__/urls.cpython-36.pyc index 79ab4ef..2991bc1 100644 Binary files a/backend/postings/api/__pycache__/urls.cpython-36.pyc and b/backend/postings/api/__pycache__/urls.cpython-36.pyc differ diff --git a/backend/postings/api/__pycache__/views.cpython-36.pyc b/backend/postings/api/__pycache__/views.cpython-36.pyc index 7747ae1..f7b96d3 100644 Binary files a/backend/postings/api/__pycache__/views.cpython-36.pyc and b/backend/postings/api/__pycache__/views.cpython-36.pyc differ diff --git a/backend/postings/migrations/__pycache__/0001_initial.cpython-36.pyc b/backend/postings/migrations/__pycache__/0001_initial.cpython-36.pyc index c803cc1..9cf0b28 100644 Binary files a/backend/postings/migrations/__pycache__/0001_initial.cpython-36.pyc and b/backend/postings/migrations/__pycache__/0001_initial.cpython-36.pyc differ diff --git a/backend/postings/migrations/__pycache__/0002_auto_20180916_1536.cpython-36.pyc b/backend/postings/migrations/__pycache__/0002_auto_20180916_1536.cpython-36.pyc index 9ddc9d1..f2e4599 100644 Binary files a/backend/postings/migrations/__pycache__/0002_auto_20180916_1536.cpython-36.pyc and b/backend/postings/migrations/__pycache__/0002_auto_20180916_1536.cpython-36.pyc differ diff --git a/backend/postings/migrations/__pycache__/0003_universityreview_title.cpython-36.pyc b/backend/postings/migrations/__pycache__/0003_universityreview_title.cpython-36.pyc index 7d01f6f..fb98ec2 100644 Binary files a/backend/postings/migrations/__pycache__/0003_universityreview_title.cpython-36.pyc and b/backend/postings/migrations/__pycache__/0003_universityreview_title.cpython-36.pyc differ diff --git a/backend/postings/migrations/__pycache__/__init__.cpython-36.pyc b/backend/postings/migrations/__pycache__/__init__.cpython-36.pyc index 4b1a3b7..a21ad51 100644 Binary files a/backend/postings/migrations/__pycache__/__init__.cpython-36.pyc and b/backend/postings/migrations/__pycache__/__init__.cpython-36.pyc differ