3 ms·
"If people don't agree on the IF statement, they just don't agree on it." Pretty much. And while individual cases can be argued, I think the general goal of ke
by ubernostrum 17y ago
"If people don't agree on the IF statement, they just don't agree on it."
Pretty much. And while individual cases can be argued, I think the general goal of keeping program logic out of templates is a good one.
"For the security concern of auto-routes, this is actually a bigger concern in Python than in Ruby just because of the different ways that they handle OO stuff. In Python, everything is a public method. So, if Django just mapped URLs to methods, there would be no way of hiding a method you didn't want called."
Actually, what I'm thinking of is a case where you might have a single application running on multiple sites, and -- for security reasons -- there'd be some views that you wouldn't want exposed on one or more of those sites. Forgetting to "un-map" even a single URL could lead to major problems (and, since an auto-mapping system can, in theory, locate anything that's on the import path, the risk seems to me to be a bit too much to accept just for the convenience of occasional automatic URLs).