#20792 closed Bug (fixed)
DISALLOWED_USER_AGENTS is a list of compiled regular expression objects not a list of strings
Reported by: | Simon Blanchard | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | DISALLOWED_USER_AGENTS |
Cc: | Brenton Cleeland | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
https://docs.djangoproject.com/en/dev/ref/middleware/ says "Forbids access to user agents in the DISALLOWED_USER_AGENTS setting, which should be a list of strings."
But it's actually expected to be a list of compiled regex objects as stated in the settings docs https://docs.djangoproject.com/en/1.5/ref/settings/#disallowed-user-agents
Change History (6)
comment:1 by , 11 years ago
Easy pickings: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 11 years ago
Cc: | added |
---|
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I've added a pull request that fixes this documentation issue:
https://github.com/django/django/pull/1398