What is django_urls?
It is flask style urls for django.
How to use it?
# app/urls.py or where-ever you want really.
from django_urls import UrlManager
app_urls = UrlManager(views_root='dotted.path.to.app.views.module')
app_urls.extend(extra_urls_list)
# app/views/foo.py
from app.urls import app_urls
@app_urls.path('path/', name='MyView', importance=5) # the bigger the importance higher in the list it goes
class MyView(View):
...
@app_urls.re_path('path2/', name='my_view', importance=1)
def my_view(request):
...
# project/urls.py
from django.urls import include, path
from app.urls import app_urls
url_patterns = [
path('some_path/', include(app_urls.url_patterns))
]
That's it, not too much setup, right?
Metadata
Release files for django-urls 1.1.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_urls-1.1.4.tar.gz | 3.1 kB | Without provenance | Details for django_urls-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_urls-1.1.4-py3-none-any.whl | Python 3 | none | any | Details for django_urls-1.1.4-py3-none-any.whl |
Total release size: 6.4 kB
Release files / django_urls-1.1.4.tar.gz
| Download URL | django_urls-1.1.4.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0eeafed8873c8bce802d58a82ece1c33e2174af6331f2cc018a610413f44854b
|
|
BLAKE2b-256 checksum How to use checksums |
f53f8ce81b95849685ae8a5f6cf6eb5a11a6f18e3bafc2956bb38a4ff7ec8c97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / django_urls-1.1.4-py3-none-any.whl
| Download URL | django_urls-1.1.4-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf3c1785dfd53b640aac3f46054d5e423355b145bf9796105191cca12493b1a4
|
|
BLAKE2b-256 checksum How to use checksums |
980efba9f97bb63524c274b9125feb6480a0e47efc111ed699c9b5b4601850bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for django-urls 1.1.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.