How come this is a hack?
Hi
In anon_user.py, there's a comment in process_request() that says
#todo: a hack, for real we need to remove this middleware
How is that middleware a hack?
Thanks in advance
Hi
In anon_user.py, there's a comment in process_request() that says
#todo: a hack, for real we need to remove this middleware
How is that middleware a hack?
Thanks in advance
I think it's because we want to run this middleware only for askbot app, and not any other apps that may be deployed on the site.
Now I don't remember why I've added that specific comment.
Django has a doc page explaining how middleware runs.
To enter a block of code:
Comments