diff options
author | CruiseDevice | 2020-03-30 20:23:40 +0530 |
---|---|---|
committer | CruiseDevice | 2020-03-30 20:23:40 +0530 |
commit | c3a18de3b8f120b16dea005d2b0ce375804f24ec (patch) | |
tree | 2d622d90e3437f45a4e17bf42b3bbfc055dd95cf | |
parent | 4a582c494f7397eec4e5d5a9fad4eb2e49b77d9c (diff) | |
download | online_test-c3a18de3b8f120b16dea005d2b0ce375804f24ec.tar.gz online_test-c3a18de3b8f120b16dea005d2b0ce375804f24ec.tar.bz2 online_test-c3a18de3b8f120b16dea005d2b0ce375804f24ec.zip |
Add corsheaders to INSTALLED_APPS
-rw-r--r-- | online_test/settings.py | 3 |
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', |