Теперь вы можете принудительно распечатать значение без локализации.
{% load l10n %}
{{ value|unlocalize }}
Взято из https://docs.djangoproject.com/en/1.7/topics/i18n/formatting/#std:templatefilter-unlocalize
Pros: It may already be cached on the user's system. Google has big pipes. You don't pay for the bandwidth.
Cons: You now have two different ways for your site to become unavailable: A service interruption on your server or one on Google's server.
I've been looking at the real-world performance of the Google loader for jQuery, particularly, and here's what I've found:
If you know what you're doing in Apache, Lighttpd, or whatever you're serving files with, you could set your cache headers just like Google's and significantly reduce the amount of data your end user has to download by serving it from your own server. You could also combine your scripts at that point and reduce your overall HTTP requests.
Bottom line: Google's performance is good but not great. If you have many many overseas users then Google is probably better, if your users are mostly US-based and maximum performance is your concern, learn about caching, Etags, gzipping, etc. and serve it yourself.
Pros:
Cons:
I think what would be cool to do is run A/B tests and see what the latency is to load minified version of jquery from Google's servers vs your server. Hopefully that'll put things into perspective. Chances are the Google server might be faster, but in terms of accepting responsibility of down time, nothing beats hosting it yourself.
В дополнение к замечаниям, высказанным другими, я отмечу два дополнительных недостатка:
Pro:
Google Ajaxlibs предлагает очень детализированный "контроль версий" для включенных библиотек. Вы можете принудительно установить определенную версию (например, JQuery 1.3.2) или автоматически запросить последнюю версию из определенной ветки (например, серия JQuery 1.3 -> в настоящее время доставит 1.3.2, но, возможно, скоро 1.3.3).
Более поздняя версия определенно имеет преимущества: вы получите выгоду от небольших исправлений ошибок / улучшения производительности без нарушения работы ваших скриптов / плагинов.
Самостоятельное ведение такого многобиблиотечного репозитория может потребовать значительных ресурсов.
Профессионалы вполне очевидны и в других ответах :
Но недостатки могут быть очень хитрыми :