Views And URLs In Django

Views And URLs In Django

Learn Python

54 года назад

304 Просмотров

Views In Django

  View is the python function that respond to a page request by generating a corresponding page. Indeed, view in Django is present in project folder or inside website application. Usually, view includes function. View is callable that accept request and returns response. View takes HTTPRequest as argument and returns HTTPResponse.
Read more https://www.motechapp.com/views-in-django/


URLs IN DJANGO
This is python file which store the path of URLs and functions created in views.py. Before including the path of views, we need to import the views. Indeed, all pages of the website in Django should be included in urls.py. Definitely, there is a great relationship between views.py and urls.py. Because views contain python function while urls.py contains path of python functions created in views.py.
Read more https://www.motechapp.com/urls-in-django/

Тэги:

#django_views #django_urls_and_views #django #python_django #django_urls #django_tutorial #views #django_urls_views #urls_in_django #python_django_views #handle_urls_in_django #django_views_file #handling_urls_in_django #django_urls.py #urls.py_in_django #routing_in_django #django_templates #django_2_urls #django_web_framework_(software) #django_2 #django_explained_in_hindi #django_url #django_urls_reverse #django_link_in_template #django_urls_tutorial #django_python
Ссылки и html тэги не поддерживаются


Комментарии: