[BUG] Django Basic as middleware

293 views
Skip to first unread message

Bernardo Torres

unread,
Jul 23, 2014, 1:59:23 PM7/23/14
to django-ba...@googlegroups.com
Using Django basic authentication as middleware.

settings.py:


MIDDLEWARE_CLASSES = (

...

    'django_basic.middleware.HttpBasicMiddleware'

)


Returns errors as some imports are missing.

The process_response should return the response itself, but it returns None. So it's better to erase it.

Attached goes fix.


Best regards.

fix.diff

Bernardo Torres

unread,
Oct 6, 2014, 1:22:50 PM10/6/14
to django-ba...@googlegroups.com
Since no answer received, I've made a fork:

Anyone is welcome to contribute: https://github.com/bernardotorres/django-auth-basic
Reply all
Reply to author
Forward
0 new messages