I am trying to override the url in django profiles to raise 404 instead of going to view.
I am looking for something like:
url(r'^profiles/$', lamdba x: raise Http404)
But the above does not work. Is it possible?
I know that I can write a new view that calls 404, but I would prefer if I could do this in the url template directly.
edit: In particular, I get invalid syntax (urls.py, line 29) with the above example.
source share