No project description provided
Project description
django-urlman
URL manager for Django
Django is powerful, we want it to be as simple as possible to use without sacrificing flexibility.
Usage
In project's 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('app1/', 'app1'),
* mount('app2/', '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".
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-urlman-0.1.0.tar.gz
(2.3 kB
view hashes)