Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

::
Expand All @@ -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

::
Expand All @@ -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")

::

Expand Down
4 changes: 2 additions & 2 deletions django_js_reverse/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

def prepare_url_list(urlresolver, namespace_path='', namespace=''):
"""
returns list of tuples [(<url_name>, <url_patern_tuple> ), ...]
returns list of tuples [(<url_name>, <url_pattern_tuple> ), ...]
"""
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)
Expand Down Expand Up @@ -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([
Expand Down