From 31817dd2eb69db54eb559716aae42fe55ada5fea Mon Sep 17 00:00:00 2001 From: Yoong Kang Lim Date: Wed, 27 Jan 2016 21:32:06 +1100 Subject: [PATCH] Fixed #26136 -- Removed URL reversing by dotted path from JavaScript catalog example. --- AUTHORS | 1 + docs/topics/i18n/translation.txt | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 39ec468caf..4e7aab8a86 100644 --- a/AUTHORS +++ b/AUTHORS @@ -760,6 +760,7 @@ answer newbie questions, and generally made Django that much better: Yasushi Masuda ye7cakf02@sneakemail.com ymasuda@ethercube.com + Yoong Kang Lim Yusuke Miyazaki Zachary Voase Zach Thompson diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index 0394790152..842003e6d6 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -984,7 +984,7 @@ You hook it up like this:: } urlpatterns = [ - url(r'^jsi18n/$', javascript_catalog, js_info_dict), + url(r'^jsi18n/$', javascript_catalog, js_info_dict, name='javascript-catalog'), ] Each string in ``packages`` should be in Python dotted-package syntax (the @@ -1004,7 +1004,7 @@ changed by altering the ``domain`` argument. You can make the view dynamic by putting the packages into the URL pattern:: urlpatterns = [ - url(r'^jsi18n/(?P\S+?)/$', javascript_catalog), + url(r'^jsi18n/(?P\S+?)/$', javascript_catalog, name='javascript-catalog'), ] With this, you specify the packages as a list of package names delimited by '+' @@ -1054,7 +1054,7 @@ To use the catalog, just pull in the dynamically generated script like this: .. code-block:: html+django - + This uses reverse URL lookup to find the URL of the JavaScript catalog view. When the catalog is loaded, your JavaScript code can use the following methods: