#20792 closed Bug (fixed)
DISALLOWED_USER_AGENTS is a list of compiled regular expression objects not a list of strings
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 , 12 years ago
Easy pickings: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 12 years ago
Cc: | added |
---|
comment:3 by , 12 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