Django urls.py TemplateView urlpatterns
Project description
Installation
$ pip install django-urls-templateview
settings.py
INSTALLED_APPS+=['django_urls_templateview']
migrate
$ python manage.py migrate
Features
urls.py
TemplateViewurlpatterns
- admin
Models
model | table | columns/fields |
---|---|---|
Map |
django_urls_templateview |
id ,url ,template_name |
Examples
urls.py
from django.db import connection
from django.views.generic.base import TemplateView
urlpatterns = []
cursor = connection.cursor()
cursor.execute("SELECT url,template_name FROM public.django_urls_templateview")
for url,template_name in cursor.fetchall():
urlpatterns.insert(0,path(url, TemplateView.as_view(template_name=template_name)))
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
Close
Hashes for django_urls_templateview-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 643726642ac0f9f3816ee3c1b0f4bc116eb4790e97abfa2948cc1d7875def2d7 |
|
MD5 | 995b3c393bf2dd3c144590b8d875bb07 |
|
BLAKE2b-256 | 6baa0fa0d1f878e77d43ddcb9011abdabed38c85304213b2f3480c939a7835a0 |