Movendo as function based views para o arquivo views.py dos novos apps no Django

This commit is contained in:
Luiz Otávio
2023-04-16 14:33:08 -03:00
parent 07107c13aa
commit 4d721daa8d
3 changed files with 18 additions and 18 deletions

View File

@@ -1,3 +1,8 @@
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
# from django.shortcuts import render
def home(request):
print('home')
return HttpResponse('home do app')