mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 21:45:41 +00:00
exibindo dados do banco no html
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
from mesas.models import Mesa
|
||||
|
||||
# Create your views here.
|
||||
|
||||
def mesas(request):
|
||||
return render(request, 'mesas.html', {'mesas': ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']})
|
||||
mesas = Mesa.objects.all()
|
||||
return render(request, 'mesas.html', {'mesas': mesas})
|
||||
Reference in New Issue
Block a user