Opened 8 years ago

Last modified 8 years ago

#27376 closed Cleanup/optimization

Why not use plural format MIDDLEWARES in settings.py in Django 1.10.x — at Version 2

Reported by: WeizhongTu Owned by: nobody
Component: Core (Other) Version: 1.10
Severity: Normal Keywords: MIDDLEWARE
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by WeizhongTu)

I know that we can implement a middleware using a function and a class in Django 1.10.x, so the related setting was renamed from "MIDDLEWARE_CLASSES" to "MIDDLEWARE".

In settings.py ALLOWED_HOSTS, INSTALLED_APPS,TEMPLATES,DATABASES are plural formats.
My question is Why NOT use "MIDDLEWARES" (plural format)?

Change History (2)

comment:1 by WeizhongTu, 8 years ago

Summary: Why Django 1.10.x not use plural format in settings.pyWhy not use plural format MIDDLEWARES in settings.py in Django 1.10.x

comment:2 by WeizhongTu, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top