summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCruiseDevice2020-03-30 20:23:40 +0530
committerCruiseDevice2020-03-30 20:23:40 +0530
commitc3a18de3b8f120b16dea005d2b0ce375804f24ec (patch)
tree2d622d90e3437f45a4e17bf42b3bbfc055dd95cf
parent4a582c494f7397eec4e5d5a9fad4eb2e49b77d9c (diff)
downloadonline_test-c3a18de3b8f120b16dea005d2b0ce375804f24ec.tar.gz
online_test-c3a18de3b8f120b16dea005d2b0ce375804f24ec.tar.bz2
online_test-c3a18de3b8f120b16dea005d2b0ce375804f24ec.zip
Add corsheaders to INSTALLED_APPS
-rw-r--r--online_test/settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/online_test/settings.py b/online_test/settings.py
index fa3712e..99c6d96 100644
--- a/online_test/settings.py
+++ b/online_test/settings.py
@@ -47,10 +47,13 @@ INSTALLED_APPS = (
'grades',
'rest_framework',
'api',
+ 'corsheaders',
+ 'rest_framework.authtoken'
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
+ 'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',