[pn]amo Remove DetectMobileMiddleware from settings.py

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: Other
--
minor
RESOLVED FIXED
8 years ago
5 years ago

People

(Reporter: jbalogh, Assigned: oremj)

Tracking

Details

(Reporter)

Description

8 years ago
Please add this code to settings_local.py:

detect = 'mobility.middleware.DetectMobileMiddleware'
if detect in MIDDLEWARE_CLASSES:
    mwc = list(MIDDLEWARE_CLASSES)
    mwc.remove(detect)
    MIDDLEWARE_CLASSES = tuple(mwc)

This should happen on services.amo if that has a different settings_local.py.
(Reporter)

Comment 1

8 years ago
Actually, this is shorter, even with the comment:

# Remove DetectMobileMiddleware from middleware in production.
detect = 'mobility.middleware.DetectMobileMiddleware'
MIDDLEWARE_CLASSES = tuple(m for m in MIDDLEWARE_CLASSES if m != detect)
(Assignee)

Updated

8 years ago
Assignee: server-ops → jeremy.orem+bugs
(Assignee)

Comment 2

8 years ago
Done.

CSP_IMG_SRC = ("'self'", STATIC_URL,
               "https://www.google.com",  # Recaptcha comes from google
               "https://statse.webtrendslive.com",
               "https://www.getpersonas.com",)
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
(Assignee)

Updated

8 years ago
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Comment 3

8 years ago
Added to preview, next and services.
Status: REOPENED → RESOLVED
Last Resolved: 8 years ago8 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.