Граф коммитов

105 Коммитов

Автор SHA1 Сообщение Дата
Paul McLanahan e9d97dc605
Add a note about Python and Django version deprecation 2020-02-10 12:00:30 -05:00
Ben Spaulding 1ea0a69b36 Remove import of removed class
I missed this in commit  1dea5add.
2020-02-10 11:55:11 -05:00
Ben Spaulding f57155deb4 Drop support for Python 2.7 and Django 1.11 2020-02-10 11:55:11 -05:00
Ben Spaulding b084ea478e Bump version to 0.6.0 2020-02-10 11:55:11 -05:00
Ben Spaulding de7a1ee6f1 Ignore W504 that is now enabled by default in flake8
“W504 line break after binary operator”
2020-02-10 11:55:11 -05:00
Ben Spaulding eb74676ec0 Vendor available_attrs function that was removed in Django 3.0 2020-02-10 11:55:11 -05:00
Ben Spaulding deaad6baa4 Update middleware to work with MIDDLEWARE setting
The MIDDLEWARE_CLASSES setting was removed in Django 2.0.
2020-02-10 11:55:11 -05:00
Ben Spaulding c2b207f19f Remove deprecated StrictTransportMiddleware 2020-02-10 11:55:11 -05:00
Ben Spaulding 48c872bbfd Drop Django <1.11, add 2.2, 3.0; Drop Python 3.5, add 3.7, 3.8 2020-02-10 11:55:11 -05:00
Will Kahn-Greene 446d138b9e
Merge pull request #25 from Mozilla-GitHub-Standards/master
Add Mozilla Code of Conduct
2019-03-28 08:34:19 -04:00
Mozilla-GitHub-Standards 52026812c4 Add Mozilla Code of Conduct file
Fixes #24.

_(Message COC002)_
2019-03-27 20:35:47 -07:00
Paul McLanahan 1ec146a82d Only deploy to pypi on Py3.6 run
[ci skip]
2017-07-26 11:44:29 -04:00
Paul McLanahan f842791888 Version 0.5.0 2017-07-26 11:33:19 -04:00
Paul McLanahan 23b8a61dba Add universal wheel support 2017-07-26 11:32:21 -04:00
Paul McLanahan 0a8ffd22ba Merge pull request #23 from pmac/master
Add flake8 to tox and fix flake8 issues
2017-07-25 13:56:35 -04:00
Paul McLanahan 5250da6c4d Add flake8 to tox and fix flake8 issues 2017-07-25 13:51:14 -04:00
Paul McLanahan 4bc4fe6c51 Switch from mock to override_settings decorator 2017-07-25 12:05:37 -04:00
Paul McLanahan aff0930c20 Update project URL in setup.py 2017-07-25 11:04:11 -04:00
Paul McLanahan 0adfe64d3d Add readme badges 2017-07-25 10:32:08 -04:00
Paul McLanahan fadd2d39e4 Add travis PyPI deployment 2017-07-25 10:32:06 -04:00
Emin Mastizada 7b5ae5a6d5 python3 improvements
* add tox for testing
* StrictTransportMiddleware deprecated

Squashed and rebased from pull request #22
2017-07-25 10:18:19 -04:00
James Socol 392213bb3a Merge pull request #21 from Osmose/contribute_json
Add contribute.json file.
2015-02-27 14:02:39 -05:00
Michael Kelly 684f9d9db6 Add contribute.json file. 2015-02-27 10:57:14 -08:00
James Socol 38328a4f0c Version 0.4.3 2015-02-18 11:11:58 -05:00
ricky rosario aba5f513e0 Merge pull request #20 from diox/no-username-compat
Add compatibility with user model without username field
2015-02-17 12:50:28 -05:00
Mathieu Pillard 3c2240b4d2 Use travis fast architecture 2015-02-17 18:40:50 +01:00
Mathieu Pillard 784767d636 Fix and add tests 2015-02-17 18:40:04 +01:00
Mathieu Pillard 151e42d4e0 Add compatibility with user model without username field 2015-02-17 18:02:28 +01:00
James Socol b5544185b2 Bump v0.4.2 2013-02-11 17:30:08 -05:00
Reed Loden de8acfaacc Increase default STS_MAX_AGE from 30 days to 1 year to allow inclusion into HSTS preload list
* Firefox requires that any built-in HSTS preloads have a max-age
  of at least 18 weeks (10886400 seconds). Since that's already
  over 4 months, make the default 1 year (31536000 seconds).
  If this ever becomes a problem, a max-age of 0 can be used as a
  knock-out entry to override any built-in or existing browser
  settings.
2013-02-01 11:24:25 -08:00
James Socol 7377aba040 Version bump to v0.4.1 2012-10-26 10:51:36 -04:00
Dirk Uys 1b2e762378 Remove old middleware from commonware.middleware.
HidePasswordOnException was removed from exceptions.middleware, but not
here.
2012-09-19 17:51:47 -04:00
James Socol c8b94e0067 PEP8 and Pyflakes cleanup. 2012-09-17 15:13:29 -04:00
James Socol c1dd1bf9c0 Version bump to v0.4.0 for changes. 2012-09-17 14:52:17 -04:00
James Socol 0e72edb1b9 Update set_cookie monkey patch for Django >=1.3.
httponly kwarg was added in Django 1.3, we don't need to do so much
custom hacking. Simplifies the logic and should fix the issues mkelly
was seeing.
2012-09-17 14:48:01 -04:00
James Socol d068435a9b No more import side effects for monkey patches. 2012-09-17 14:17:16 -04:00
James Socol f95a03a9b1 Decorators for X-Robots-Tag and tests.
Refactor some decorator tests to be more DRY.
2012-09-17 13:52:02 -04:00
Anthony Ricaud 1b0085b632 Add a RobotsTagHeader middleware.
This will prevent search engines to use Open Directory Project
descriptions by default.
2012-09-17 13:00:14 -04:00
Anthony Ricaud 16b4cc7f09 Remove unnecessary imports 2012-09-17 12:50:04 -04:00
Reed Loden 6147e970bf Use correct case for headers. 2012-09-11 14:47:34 -04:00
James Socol 60ce951b0a Merge pull request #14 from reedloden/master
Add support for the X-XSS-Protection and X-Content-Type-Options headers
2012-09-10 13:02:47 -07:00
Reed Loden babf82141f Allow the new headers to be overridden, if needed.
Use correct case for the new headers.
Add tests to support overriding.
2012-09-10 09:52:03 -07:00
Reed Loden 8bf0fa64e6 Add support for the X-XSS-Protection and X-Content-Type-Options headers.
* Add the X-XSS-Protection header to prevent simple XSS attacks
  and enforce the blocking (rather than the rewriting) mode.

* Add the X-Content-Type-Options header to prevent browsers sniffing
  the MIME type away from the declared Content-Type.
2012-09-09 12:18:11 -07:00
James Socol e2e02ad47b Update version for changes. 2012-03-07 18:53:08 -05:00
James Socol b6feb48864 Don't overcommit to Python support. 2012-03-07 18:36:25 -05:00
James Socol 6246cf08c4 Add Travis-CI test file. 2012-03-07 18:33:13 -05:00
James Socol 34058808ef Drop Graphite Middleware. Use django-statsd. Fixes #11. 2012-03-07 18:31:37 -05:00
James Socol 86becc9ff7 PEP8 2012-03-07 18:30:57 -05:00
James Socol bbb5d1002a Make SRAFFF IPv6 safe. Fixes #10. 2012-03-07 18:28:14 -05:00
James Socol 2c08d94164 Fix tests from STS middleware. 2012-03-07 18:10:49 -05:00