Franco Leyes
Slow Performance Issue with Django Admin in Production Environment
local:
python manage.py runserver
railway:
I've tried many production setups, but currently, this is what I'm using "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn -k gevent --workers=8 gym.wsgi"
28 replies
Slow Performance Issue with Django Admin in Production Environment
My middleware stack configuration in the Django settings file is as follows:
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
"whitenoise.middleware.WhiteNoiseMiddleware",
'django.contrib.sessions.middleware.SessionMiddleware',
"corsheaders.middleware.CorsMiddleware",
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.locale.LocaleMiddleware',
'auditlog.middleware.AuditlogMiddleware',
]
28 replies