=================
**django-js-routing** is a simple
It's based on the Symfony's [JsRoutingBundle](https://github.com/FriendsOfSymfony/FOSJsRoutingBundle), but simplified, of course :)
Installation & usage
--------------------
1. Install using pip:
pip install django-js-routing
2. Add to INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_js_routing',
)
3. Add the URL's to settings/urls.py file:
urlpatterns = patterns('',
...
url(r'^django_js_routing/', include('django_js_routing.urls', namespace='django_js_routing')),
)
4. Name your routes and add them to settings.py, under:
EXPOSED_ROUTES = (
'exposed_route',
'exposed_route_2',
...
)
5. Add required scripts to your HTML:
{% load staticfiles %}
<script src="{% static 'django_js_routing/router.min.js' %}"></script>
<script src="{% url 'django_js_routing:routes' %}"></script>
6. Use it!
var url = DjangoUrl.reverse('exposed_route', {param1: 12, param2: 15});
About
-----
**django-js-routing** is written by Magd Kudama (magdkudama@gmail.com)
License
-------
You can use this library under the MIT license. See the LICENSE file for details
Metadata
Release files for django-js-routing 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-js-routing-1.0.4.tar.gz | 3.1 kB | Without provenance | Details for django-js-routing-1.0.4.tar.gz |
Release files / django-js-routing-1.0.4.tar.gz
| Download URL | django-js-routing-1.0.4.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f83f2e41da7474afddb8080107ee6c05c617e6819a15faaed50952d5967c1990
|
|
BLAKE2b-256 checksum How to use checksums |
36735db9d5da09be70fc7ccd747bb9708300a3ed262168ac529d523ceee481ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-js-routing 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.