diff --git a/README.rst b/README.rst index e8662ba..92b1517 100644 --- a/README.rst +++ b/README.rst @@ -233,7 +233,7 @@ notation instead: Urls['betterliving-get-house']('house', 12) Urls['namespace:betterliving-get-house']('house', 12) -You can also pass javascript objects to match keyword aguments like the +You can also pass javascript objects to match keyword arguments like the examples bellow: :: @@ -259,7 +259,7 @@ used to access the named urls is attached to. Default is :code:`this` JS_REVERSE_JS_GLOBAL_OBJECT_NAME = 'window' -Optionally, you can disable the minfication of the generated javascript file +Optionally, you can disable the minification of the generated javascript file by django setting :: @@ -282,7 +282,7 @@ To exclude any namespaces from the generated javascript file, add them to the `J If you want to include only specific namespaces add them to the `JS_REVERSE_INCLUDE_ONLY_NAMESPACES` setting tips: * Use "" (empty string) for urls without namespace -* Use "foo\0" to include urls just from "foo" namaspace and not from any subnamespaces (e.g. "foo:bar") +* Use "foo\0" to include urls just from "foo" namespace and not from any subnamespaces (e.g. "foo:bar") :: diff --git a/django_js_reverse/core.py b/django_js_reverse/core.py index 5f81863..105edaa 100755 --- a/django_js_reverse/core.py +++ b/django_js_reverse/core.py @@ -36,7 +36,7 @@ def prepare_url_list(urlresolver, namespace_path='', namespace=''): """ - returns list of tuples [(, ), ...] + returns list of tuples [(, ), ...] """ exclude_ns = getattr(settings, 'JS_REVERSE_EXCLUDE_NAMESPACES', JS_EXCLUDE_NAMESPACES) include_only_ns = getattr(settings, 'JS_REVERSE_INCLUDE_ONLY_NAMESPACES', JS_INCLUDE_ONLY_NAMESPACES) @@ -110,7 +110,7 @@ def generate_json(default_urlresolver, script_prefix=None): if script_prefix is None: script_prefix = urlresolvers.get_script_prefix() - # Ensure consistent ouptut ordering + # Ensure consistent output ordering urls = sorted(list(prepare_url_list(default_urlresolver))) return collections.OrderedDict([