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
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.
Fixed ticket #21172

LiveServerThread.join() now behaves like threading.Thread.join().
LiveServerThread.terminate() is instead used to ask live http server to
terminate and close.
Simplify (and very very slightly speed up) the pbkdf2 implementation
Updated the set of watched files after each request.

Otherwise the kqueue-based autoreloader may not see changes to files
that weren't imported when the server started.

Thanks Bouke Haarsma for the report and Loïc Bistuer for locating the
problem.