exibindo dados do banco no html

This commit is contained in:
2024-12-10 20:42:10 -03:00
parent 91dde27384
commit fbb326f347
26 changed files with 170 additions and 24 deletions

View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

3
gestaoRaul/home/admin.py Normal file
View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
gestaoRaul/home/apps.py Normal file
View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class HomeConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'home'

View File

View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View File

@@ -0,0 +1,32 @@
{% extends "base.html" %}
{% load static %}
{% block 'head' %}
<link rel="stylesheet" href="{% static 'mesas/css/mesas.css' %}">
{% endblock %}
{% block 'title' %}
RRB&C - DashBoard
{% endblock %}
{% block 'body' %}
<body>
<div class="grid-container">
<h1>DashBoard Aqui</h1>
{% comment %} {% for mesa in mesas %}
<div class="card">{{mesa.name}}</div>
{% endfor %} {% endcomment %}
</div>
</body>
{% endblock %}

3
gestaoRaul/home/tests.py Normal file
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

7
gestaoRaul/home/urls.py Normal file
View File

@@ -0,0 +1,7 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
]

5
gestaoRaul/home/views.py Normal file
View File

@@ -0,0 +1,5 @@
from django.shortcuts import render
# Create your views here.
def home(request):
return render(request, 'home.html')