summaryrefslogtreecommitdiff
path: root/postgresqleu/util/middleware.py
AgeCommit message (Collapse)Author
2021-04-21Don't include full realm in basic authMagnus Hagander
Basic authentication can be enabled across the whole site (typical for testing sites), and used SITEBASE as the realm for authentication, which includes the http[s]:// part of the url. This can apparently confuse Safari, so change it so that we extract just the hostname part.
2020-04-14Enforce the timezone is reset between requestsMagnus Hagander
Turns out django does not reset the timezone on requests, unless it's done explicitly. So add a new middleware that does exactly this -- and then individual requests will set it back to the conference timezone as required. Not doing this could lead to very interesting results in a multi-threaded server...
2020-04-04Update middlewares for django 2.2 compatibilityMagnus Hagander
This includes removing the FilterPersistMiddleware which really isn't needed much anymore, so not worth the effort to port. Changes are all backwards compatible.
2019-12-21Fix unicode error in basic authentication checkMagnus Hagander
2018-12-16Move django admin interface to /admin/django/Magnus Hagander
Happy broken links everybody :) But these are links that should normally not be used, so...
2018-12-15Replace usage of has_key()Magnus Hagander
It has been deprecated, and instead we should use "in" and "not in", so make that change across the board.
2018-12-14Fix blankline related warningsMagnus Hagander
2018-12-14Fix comment warningsMagnus Hagander
In passing remove some comments that were pointless
2018-12-14Fix spaces before/after comma and colonMagnus Hagander
Mostly not important, but getting rid of the PIP warnings will help catch errors in the future.
2018-12-14Fix spacing around operatorsMagnus Hagander
2018-12-14Replace tabs with spacesMagnus Hagander
In an effort to close up with PEP8, we should use spaces for indent rather than tabs... Time to update your editor config!
2018-03-29Add a middleware to support redirects using raiseMagnus Hagander
This is maybe not pretty, but very convenient..
2016-07-21Implement global http auth middlewareMagnus Hagander
When configured this will require a fixed username/password to access all pages on the site. The reason for this is to be able to more easily deploy a testing system that's actually reachable outside localhost without exposing it to other users and/or search engines. A new decorator, global_login_exempt, is also created to exclude certain URLs from this password requirement. Currently only used for Adyen notifications, and it's main usecase is to support receiving pingbacks from external systems such as payment providers.
2014-03-26Add simple admin dashboard for conferencesMagnus Hagander
This is basically just a linkdump, for those who can't remember all the different links that are used.
2010-01-08Make filters in admin be sticky, according to:Magnus Hagander
http://code.djangoproject.com/ticket/3777