Ask Your Question
0

How come this is a hack?

asked 2013-06-08 18:57:21 -0500

kate_r's avatar

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-08 19:08:40 -0500

Evgeny's avatar

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-06-08 18:57:21 -0500

Seen: 189 times

Last updated: Jun 08 '13