De `else` is niet nodig.  Duidelijker:

```python
if request.REQUEST.get('nologinrequired'):
    return HttpResponseRedirect(request.REQUEST['url'])
return redirect_to_login('%s?url=%s' % (
      reverse('rauth'),
      request.REQUEST['url'].replace('/', '%2F')))
```