django create view and detailview code example
Example 1: 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")
Example 2: django detailview
class YourView(DetailView):
model = YourModel
template_name = 'your_template.html'