django

computing, General

Passing REMOTE_USER through mod_WSGI

I need to change the way we authenticate a django application. Currently we authenticate by an apache module which sets the REMOTE_USER header and passes it to the python app in the environment of mod_wsgi. The new approach will be to use an app gateway. The gateway works like a reverse proxy and intercept requests […]

computing

Django Q function

When querying objects in django the simplest way is to use the filter() query. If we have a set of systems for example and we want to filter out those that have a SPARC architecture we could do: >>> System.objects.filter(architecture=”sparc”) And if we wanted to narrow that down to only sparc machines that use NIS

Scroll to Top