Butter Mountain Rotating Header Image

Posts under ‘Django’

Django: a simple whitelist decorator to ‘protect’ views

I’ve recently been working on a project where I wanted to restrict access to my admin views by ip address in the form of a white list. With the aim being that it would provide an extra level of protection ontop of the existing login process.
The idea is fairly simple, if the requesters ip address [...]

Referential Integrity and Django.