===============
A fork of dutils, a library for using Django urlpatterns on the clientside.
Installation
------------
1. Add `django_js_utils` to INSTALLED_APPS
2. Set the file to hold the generated urls
```URLS_JS_GENERATED_FILE = 'static/js/dutils.conf.urls.js'```
3. Add inclusion/exclusions patterns
```
URLS_INCLUDE_PREFIX = ['^api',]
URLS_INCLUDE_PATTERN = ['index','status']
URLS_EXCLUDE_PREFIX = ['^internal',]
URLS_EXCLUDE_PATTERN = ['index',]
```
4. Add to your project:
```
<script type="text/javascript" src="{{STATIC_URL}}dutils.js"></script>
<script type="text/javascript" src="{{STATIC_URL}}dutils.conf.urls.js"></script>
```
Usage
-----
1. Create the `URLS_JS_GENERATED_FILE` (for production remember to run `collectstatic`):
```
python manage.py js_urls
```
2. Clientside Django urlpatterns:
```
url('time_edit', {'project_id': 1, time_id: 2}
url('time_edit', [1, 2])
```
Credits
-------
Credit contributing to django-js-utils goes to:
* Marco Louro (author)
* Chris Reeves
* Dimitri Gnidash
* Luke Zapart
* Robby Dermody
* Antti Kaihola
* Simon Williams
* Jussi Vaihia
Metadata
Release files for django-js-utils-nextgen 0.9.0
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-utils-nextgen-0.9.0.tar.gz | 4.4 kB | Without provenance | Details for django-js-utils-nextgen-0.9.0.tar.gz |
Release files / django-js-utils-nextgen-0.9.0.tar.gz
| Download URL | django-js-utils-nextgen-0.9.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23ab92935efb48986b5fd8d6483fd4b713be528f8ded2d8ef232129ea7e3b82a
|
|
BLAKE2b-256 checksum How to use checksums |
5f61d34f72175989c0cf83e62dfa6d42f851a6f3205be4dd5b8b687d8db2dacb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-js-utils-nextgen 0.9.0
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.