A RouteView class which register itself
Project description
Django_RouteView
Implement an auto-registered view
Usage
Declare your view
# views.py
from django_routeview import RouteView
class MyView(RouteView):
route = "/myurl"
name = "myname" # default to __name__
def get(*args, **kwargs):
pass
...
Import urls
# urls.py
from django.urls import include
urlpatterns = [
path("", include("django_routeview"))
]
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_routeview-1.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for django_routeview-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c62871382e09926b1e93b9a782c2f261495210eafc77c57d0ca0a7a1f10d8a15 |
|
MD5 | 91d2e7823f652248607eb2dc0c884ede |
|
BLAKE2b-256 | 3713493079688ddf32f9108bda57a2e7ee6e5a6779f2eb39a0f7f21f49adb6ef |