Answers for "import views in django"

0

import views

from django.shortcuts import render, redirect
from django.urls import reverse_lazy 
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login
from .forms import UserRegistrationForm
from django.views.generic import (CreateView, ListView, DetailView, UpdateView, DeleteView, TemplateView)
Posted by: Guest on October-02-2020
2

create views django

from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def hola(request):
    return HttpResponse("Hola Mundo, Esto es Django")
Posted by: Guest on May-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language