diff --git a/SZI1/__pycache__/__init__.cpython-37.pyc b/SZI1/__pycache__/__init__.cpython-37.pyc index 290e05d..3b07cb9 100644 Binary files a/SZI1/__pycache__/__init__.cpython-37.pyc and b/SZI1/__pycache__/__init__.cpython-37.pyc differ diff --git a/SZI1/__pycache__/settings.cpython-37.pyc b/SZI1/__pycache__/settings.cpython-37.pyc index b75e1d9..a931efc 100644 Binary files a/SZI1/__pycache__/settings.cpython-37.pyc and b/SZI1/__pycache__/settings.cpython-37.pyc differ diff --git a/SZI1/__pycache__/urls.cpython-37.pyc b/SZI1/__pycache__/urls.cpython-37.pyc index fcabce6..c9fa243 100644 Binary files a/SZI1/__pycache__/urls.cpython-37.pyc and b/SZI1/__pycache__/urls.cpython-37.pyc differ diff --git a/SZI1/__pycache__/wsgi.cpython-37.pyc b/SZI1/__pycache__/wsgi.cpython-37.pyc index 07660ed..f66d466 100644 Binary files a/SZI1/__pycache__/wsgi.cpython-37.pyc and b/SZI1/__pycache__/wsgi.cpython-37.pyc differ diff --git a/SZI1/settings.py b/SZI1/settings.py index 2792f84..a57187f 100644 --- a/SZI1/settings.py +++ b/SZI1/settings.py @@ -37,11 +37,13 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'magazine' + 'magazine', + 'corsheaders' ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', + 'corsheaders.middleware.CorsMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', @@ -123,3 +125,5 @@ STATICFILES_DIRS = [ ] STATIC_URL = '/static/' + +CORS_ORIGIN_ALLOW_ALL = True \ No newline at end of file diff --git a/magazine/__pycache__/__init__.cpython-37.pyc b/magazine/__pycache__/__init__.cpython-37.pyc index 9cfab94..1352577 100644 Binary files a/magazine/__pycache__/__init__.cpython-37.pyc and b/magazine/__pycache__/__init__.cpython-37.pyc differ diff --git a/magazine/__pycache__/admin.cpython-37.pyc b/magazine/__pycache__/admin.cpython-37.pyc index 576760e..5bb16c7 100644 Binary files a/magazine/__pycache__/admin.cpython-37.pyc and b/magazine/__pycache__/admin.cpython-37.pyc differ diff --git a/magazine/__pycache__/urls.cpython-37.pyc b/magazine/__pycache__/urls.cpython-37.pyc index 60a76da..fd782af 100644 Binary files a/magazine/__pycache__/urls.cpython-37.pyc and b/magazine/__pycache__/urls.cpython-37.pyc differ diff --git a/magazine/__pycache__/views.cpython-37.pyc b/magazine/__pycache__/views.cpython-37.pyc index 71fc264..442ad0b 100644 Binary files a/magazine/__pycache__/views.cpython-37.pyc and b/magazine/__pycache__/views.cpython-37.pyc differ diff --git a/magazine/migrations/__pycache__/__init__.cpython-37.pyc b/magazine/migrations/__pycache__/__init__.cpython-37.pyc index 8dff860..dcd28c4 100644 Binary files a/magazine/migrations/__pycache__/__init__.cpython-37.pyc and b/magazine/migrations/__pycache__/__init__.cpython-37.pyc differ