First time here? Check out the FAQ!
0

How come this is a hack?

  • retag add tags

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

kate_r's avatar
107
kate_r
asked 2013-06-08 18:57:21 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2013-06-08 19:08:40 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments