hadithhouse / HadithHouseApi

Backend for Hadith House
http://www.hadithhouse.net/
MIT License
3 stars 3 forks source link

Remove unnecessary middlewares #427

Open rafidka opened 6 years ago

rafidka commented 6 years ago

Currently, we have the following middlewares:

MIDDLEWARE = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

The might not necessarily be useful, and might just make requests slower. We need to check them and remove unnecessary ones.