Files
2012-02-21 01:15:00 -05:00

1 line
5.2 KiB
JSON

[{"user_id": 13467, "stars": [], "topic_id": 9540, "date_created": 1298911810.315454, "message": "Easiest is to just use the built-in templating language. If you try to re-use apps from the community, you'll run into a lot of headaches adapting them to an alternate template system.", "group_id": 81, "id": 227162}, {"user_id": 13524, "stars": [], "topic_id": 9540, "date_created": 1298911975.8629229, "message": "I'm thinking about using mongodb for my upcoming project, so most apps are kind of out already.", "group_id": 81, "id": 227178}, {"user_id": 603, "stars": [], "topic_id": 9540, "date_created": 1298911194.4544439, "message": "i've used jinja2 with django before and been pleased. However, you don't get the built-in filters/templatetags", "group_id": 81, "id": 227055}, {"user_id": 13467, "stars": [], "topic_id": 9540, "date_created": 1298911841.99523, "message": "That said, we use Jinja2 at Mozilla for all of our Django webdev projects, and it's worth the headaches mostly.", "group_id": 81, "id": 227165}, {"user_id": 13524, "stars": [], "topic_id": 9540, "date_created": 1298911055.9017589, "message": "I've used Django quite extensively. For the most part I've been using the built in template language. As you know it has it's weak spots. Which templating language would you recommend to use with it?", "group_id": 81, "id": 227030}, {"user_id": 603, "stars": [], "topic_id": 9540, "date_created": 1298912811.654124, "message": "@carljm, it was an extreme case. Had to render 20k rows on one page. It made me cry a little", "group_id": 81, "id": 227312}, {"user_id": 4936, "stars": [], "topic_id": 9540, "date_created": 1298913449.235116, "message": "I like the built-in template language. I made some performance tests with others. It's not worth the headaches.", "group_id": 81, "id": 227423}, {"user_id": 7129, "stars": [], "topic_id": 9540, "date_created": 1298912051.3749461, "message": "For new projects, I use jinja2 via \"coffin\" so a lot of the Django templatetags and filters just work. I don't migrate old projects as it's not really worth the effort once you enable Django's cached template loader.", "group_id": 81, "id": 227189}, {"user_id": 214, "stars": [{"date_created": 1298912996.698015, "user_id": 6415}, {"date_created": 1298954653.9730949, "user_id": 12780}, {"date_created": 1298964305.8148341, "user_id": 9209}, {"date_created": 1298970668.969451, "user_id": 9650}, {"date_created": 1298982501.6316421, "user_id": 927}, {"date_created": 1298999959.4574759, "user_id": 12002}], "topic_id": 9540, "date_created": 1298912171.8078859, "message": "I use the built-in template language. I've just never found that the limitations of the template language were a significant limiting factor in getting stuff done, so I don't see any reason to deal with the hassles of switching.", "group_id": 81, "id": 227208}, {"user_id": 603, "stars": [], "topic_id": 9540, "date_created": 1298912689.705091, "message": "@carljm, i'm generally with you on that one. I had one project where the built-in was too slow for rendering a very large amount of tabular data. It was also a project on 0.9.6, so there have probably been fixes to my problems at the time.", "group_id": 81, "id": 227280}, {"user_id": 214, "stars": [{"date_created": 1298999971.8194621, "user_id": 12002}], "topic_id": 9540, "date_created": 1298912750.980402, "message": "@mattg May have been fixed, quite likely there are still situations where it'd be slow. I just haven't run into them.", "group_id": 81, "id": 227296}, {"user_id": 11647, "stars": [], "topic_id": 9540, "date_created": 1298919337.4172959, "message": "According to SO http://stackoverflow.com/questions/1324238/what-is-the-fastest-template-system-for-python Cheetah or Mako are the strongest performance wise, but I get the feeling that few sites will actually require this optimization. Eric has written a good how-to use cheetah with Django: http://www.eflorenzano.com/blog/post/cheetah-and-django/", "group_id": 81, "id": 228029}, {"user_id": 1, "stars": [{"date_created": 1298921753.4938171, "user_id": 5778}], "topic_id": 9540, "date_created": 1298921490.7084849, "message": "Whoa, I totally forgot about that post.", "group_id": 81, "id": 228389}, {"user_id": 115, "stars": [], "topic_id": 9540, "date_created": 1298933770.481729, "message": "it is relatively slow, but of course you should measure it for your use case before switching", "group_id": 81, "id": 230096}, {"user_id": 927, "stars": [], "topic_id": 9540, "date_created": 1298982571.3205581, "message": "I'm with @carljm - the built-in language is quite serviceable, avoids confusion if you reuse any apps at all, getting better (e.g. TemplateResponse in 1.3 is going to be great) and is very, very rarely a performance issue", "group_id": 81, "id": 234093}, {"user_id": 927, "stars": [{"date_created": 1299000069.920851, "user_id": 12002}, {"date_created": 1299004539.6605749, "user_id": 214}], "topic_id": 9540, "date_created": 1298982845.0965731, "message": "(Here I'm thinking of a certain project where the line of thought appeared to go something like: \"This view is slow - time to rip out Django templates from the entire project and switch to Jinja2!\" when trivial profiling showed 8,000 queries to generate the page)", "group_id": 81, "id": 234114}]