Fixing E302 Errors

Signed-off-by: Jason Myers <jason@jasonamyers.com>
Fixed all E261 warnings
PEP8

Signed-off-by: Jason Myers <jason@jasonamyers.com>
Correct flake8 E302 violations
Revert change to django/test/_doctest.py
Checkout prior commit of _doctest.py
Fixed the remaining E302 violations int eh django package
PEP8 cleanup

Signed-off-by: Jason Myers <jason@jasonamyers.com>
Merging Upstream

Signed-off-by: Jason Myers <jason@jasonamyers.com>
Fixed #14170 -- Reset i18n cache when settings change
Fixed flake8 E251 violations
Fixed regressions from 36ded01527b690b5df0574492af9cfcc2ea3d1dc.

Refs #21302
Fixed some testfailures on jenkins.

Depending on the order of the tests beeing run, 10 can be a valid pk,
0 can never be a valid pk and as such we will get the wanted ValidationError.
Merging in master

Signed-off-by: Jason Myers <jason@jasonamyers.com>
Merge pull request #1861 from milmazz/E251

Fixed flake8 E251 violations
Merge pull request #1852 from jasonamyers/cleanup/PEP8

Cleanup/pep8 tests
Fixed all E226 violations
Fixed all E251 violations
Fixed #21322 -- Error message when CSRF cookie is missing

Thanks to Henrik Levkowetz and olau for their reports and initial patches.
Simplify (and very very slightly speed up) the pbkdf2 implementation