У нас вы можете посмотреть бесплатно Django Project 6 Getting Data From HTML Page and Display или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Welcome to official tech ======================================= The CSRF middleware and template tag provides easy-to-use protection against Cross Site Request Forgeries. This type of attack occurs when a malicious website contains a link, a form button or some JavaScript that is intended to perform some action on your website, using the credentials of a logged-in user who visits the malicious site in their browser. A related type of attack, ‘login CSRF’, where an attacking site tricks a user’s browser into logging into a site with someone else’s credentials, is also covered. The first defense against CSRF attacks is to ensure that GET requests are side effect free. Requests via ‘unsafe’ methods, such as POST, PUT, and DELETE, can then be protected by following the steps below. ---------------------------------------------------------------------------- urls.py ---------------------------------------------------------------------------- """project6 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1... Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path from app6 import views urlpatterns = [ path('admin/', admin.site.urls), path('home/', views.indexPage), path('showDetail/', views.details), ] ------------------------------------------------------------------------------------------ views.py ------------------------------------------------------------------------------------------ from django.shortcuts import render Create your views here. def indexPage(request): return render(request, 'index.html') def details(request): name = request.POST.get('n') age = request.POST.get('a') contact = request.POST.get('c') d = { "key1": name, "key2": age, "key3": contact } return render(request, 'show.html', {"data": d}) -------------------------------------------------------------------------------------------- https://github.com/officialtech