Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_routeview-1.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file django_routeview-1.1.0.tar.gz.

File metadata

  • Download URL: django_routeview-1.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for django_routeview-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e5c29d25ca4c8a3db83c663144f5de1fa2c572fa5ea2f963840febcdfbeb053b
MD5 6b31b4ec72279a2b3edc189646d8012c
BLAKE2b-256 2d8778a40c4b846cdea63b47f0c1183cafa63b098ad186edd7ba8f78a0bf5e54

See more details on using hashes here.

File details

Details for the file django_routeview-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_routeview-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for django_routeview-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c081f5898adec751182559cff99f7304f26968204f0815821006d92e5f27cde9
MD5 6f47d95142bd0718b9da78f3e31b1a37
BLAKE2b-256 673e38f52e3d3ee25753714682725a46718596bc509914292be06960460f68e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page