From b3ea00e13544530c8748d7ed890faf66fad34aa7 Mon Sep 17 00:00:00 2001 From: kououken Date: Fri, 1 Feb 2019 14:10:02 -0800 Subject: [PATCH] Reordered apps and middleware in settings.py --- back/reimbursinator/settings.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/back/reimbursinator/settings.py b/back/reimbursinator/settings.py index 323a058..7d27ae7 100644 --- a/back/reimbursinator/settings.py +++ b/back/reimbursinator/settings.py @@ -38,10 +38,12 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'backend', +# 3rd party 'rest_framework', - 'users', 'corsheaders', +# local + 'users', + 'backend', ] REST_FRAMEWORK = { @@ -52,6 +54,7 @@ REST_FRAMEWORK = { MIDDLEWARE = [ 'corsheaders.middleware.CorsMiddleware', + 'django.middleware.common.CommonMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware',