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

1 line
3.8 KiB
JSON

[{"user_id": 213, "stars": [{"date_created": 1300987134.948755, "user_id": 141}], "topic_id": 14998, "date_created": 1300986916.8805971, "message": "there is http://code.djangoproject.com/ticket/15252 is related to that", "group_id": 81, "id": 428885}, {"user_id": 213, "stars": [], "topic_id": 14998, "date_created": 1300986869.8213561, "message": "I wouldn't mind adding a {% static %} template tag in a future version of Django though, especially when integrated in the STATICFILES_STORAGE api", "group_id": 81, "id": 428877}, {"user_id": 521, "stars": [], "topic_id": 14998, "date_created": 1300986049.594666, "message": "is there logic behind including the slash in STATIC_URL?", "group_id": 81, "id": 428743}, {"user_id": 521, "stars": [], "topic_id": 14998, "date_created": 1300986070.9505401, "message": "vs what I think looks better: <img src=\"{{ STATIC_URL }}/images/hi.jpg />", "group_id": 81, "id": 428750}, {"user_id": 521, "stars": [], "topic_id": 14998, "date_created": 1300986092.139689, "message": "just curious more than anything", "group_id": 81, "id": 428753}, {"user_id": 521, "stars": [], "topic_id": 14998, "date_created": 1300986057.2200091, "message": "i.e. <img src=\"{{ STATIC_URL }}images/hi.jpg />", "group_id": 81, "id": 428746}, {"user_id": 7129, "stars": [], "topic_id": 14998, "date_created": 1300986644.6503129, "message": "Latter.", "group_id": 81, "id": 428848}, {"user_id": 7129, "stars": [{"date_created": 1301028110.8315949, "user_id": 3354}], "topic_id": 14998, "date_created": 1300986651.6234269, "message": "But pro tip: Make a simple templatetag {% static \"blah\" %} that does this concatenation for you (with urljoin)", "group_id": 81, "id": 428851}, {"user_id": 213, "stars": [], "topic_id": 14998, "date_created": 1300986764.7189901, "message": "@lamby changing the STATIC_URL setting to the base URL of a CDN is easy, too", "group_id": 81, "id": 428866}, {"user_id": 213, "stars": [], "topic_id": 14998, "date_created": 1300986786.219275, "message": "any more elaborate functionality can obviously be implemented in a custom template tag", "group_id": 81, "id": 428871}, {"user_id": 7129, "stars": [], "topic_id": 14998, "date_created": 1300986719.907829, "message": "Or you can route static media between multiple subdomains like http://a.example.com/, http://b.example.com/ to parallelise media requests.", "group_id": 81, "id": 428859}, {"user_id": 213, "stars": [{"date_created": 1301028116.787797, "user_id": 3354}], "topic_id": 14998, "date_created": 1300986718.3470631, "message": "Django 1.3 requires the STATIC_URL to have a trailing slash, for backend reasons. {{ STATIC_URL }}images/hi.jpg is a result of that", "group_id": 81, "id": 428857}, {"user_id": 213, "stars": [], "topic_id": 14998, "date_created": 1300986925.1608939, "message": "err, that was a broken sentence, anyway..", "group_id": 81, "id": 428886}, {"user_id": 213, "stars": [], "topic_id": 14998, "date_created": 1300986939.074815, "message": "lemme know what you think :)", "group_id": 81, "id": 428888}, {"user_id": 7129, "stars": [], "topic_id": 14998, "date_created": 1300986675.236563, "message": "You can then move to a CDN with one line change (and still host it locally with whatever settings.py hacks you do for local development)", "group_id": 81, "id": 428852}, {"user_id": 5367, "stars": [], "topic_id": 14998, "date_created": 1301569552.511811, "message": "Now yeah it's time to push it a bit further by allowing to hook up your cdn urls for your static files (or just multiple urls in the same server) while still using the clear semantics that {{STATIC_URL}} offers.", "group_id": 81, "id": 490728}, {"user_id": 5367, "stars": [], "topic_id": 14998, "date_created": 1301569435.79846, "message": "The static files support in 1.3 is a huge step in clearing up the mess with media and static media (I already used the respective app before 1.3)", "group_id": 81, "id": 490718}]