mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
exibindo dados do banco no html
This commit is contained in:
0
gestaoRaul/home/__init__.py
Normal file
0
gestaoRaul/home/__init__.py
Normal file
BIN
gestaoRaul/home/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
gestaoRaul/home/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestaoRaul/home/__pycache__/urls.cpython-310.pyc
Normal file
BIN
gestaoRaul/home/__pycache__/urls.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestaoRaul/home/__pycache__/views.cpython-310.pyc
Normal file
BIN
gestaoRaul/home/__pycache__/views.cpython-310.pyc
Normal file
Binary file not shown.
3
gestaoRaul/home/admin.py
Normal file
3
gestaoRaul/home/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
gestaoRaul/home/apps.py
Normal file
6
gestaoRaul/home/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class HomeConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'home'
|
||||
0
gestaoRaul/home/migrations/__init__.py
Normal file
0
gestaoRaul/home/migrations/__init__.py
Normal file
3
gestaoRaul/home/models.py
Normal file
3
gestaoRaul/home/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
32
gestaoRaul/home/templates/home.html
Normal file
32
gestaoRaul/home/templates/home.html
Normal 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
3
gestaoRaul/home/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
7
gestaoRaul/home/urls.py
Normal file
7
gestaoRaul/home/urls.py
Normal 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
5
gestaoRaul/home/views.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
def home(request):
|
||||
return render(request, 'home.html')
|
||||
Reference in New Issue
Block a user