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.1.0.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for django_routeview-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c081f5898adec751182559cff99f7304f26968204f0815821006d92e5f27cde9 |
|
MD5 | 6f47d95142bd0718b9da78f3e31b1a37 |
|
BLAKE2b-256 | 673e38f52e3d3ee25753714682725a46718596bc509914292be06960460f68e7 |