Skip to main content

django-urlman

URL manager for Django

Django is powerful, we want it to be as simple as possible without sacrificing flexibility.

Usage

Assume the django project is named 'mysite', in the project's url-config file (mysite/urls.py):

from django_urlman import mount

urlpatterns = [
    # original django urls
    path('polls/', include('polls.urls')),
    path('admin/', admin.site.urls),

    # django-urlman aware apps
    * mount('mysite', # main project name 
       {
        'app1': 'app1/', # mount app1 at anchor 'app1/'
        'app2': 'app2/', # mount app2 at anchor 'app2/'
       }),
]

In app1 module:

from django_urlman import url

@url
def hi(_):
    return HttpResponse('Hello World')

Then the api endpoint "app1/hi" should return "Hello World".

Metadata

Release files for django-urlman 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-urlman 0.2.0
File Size Uploaded Provenance Actions
django-urlman-0.2.0.tar.gz 2.6 kB Without provenance Details for django-urlman-0.2.0.tar.gz

Release files / django-urlman-0.2.0.tar.gz

Download URL django-urlman-0.2.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ab304957512eadae91ab3d05c18e4bddd44637b5cb2c1849b1ae4ea9835f3d25
BLAKE2b-256 checksum
How to use checksums
827c436b95c3309182d7827d0b61ca671ea72ceb953a3d08d703b26c9ba0bcb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.2

Security for django-urlman 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page