mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
first commit
This commit is contained in:
0
gestaoRaul/clients/__init__.py
Normal file
0
gestaoRaul/clients/__init__.py
Normal file
BIN
gestaoRaul/clients/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
gestaoRaul/clients/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestaoRaul/clients/__pycache__/admin.cpython-310.pyc
Normal file
BIN
gestaoRaul/clients/__pycache__/admin.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestaoRaul/clients/__pycache__/apps.cpython-310.pyc
Normal file
BIN
gestaoRaul/clients/__pycache__/apps.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestaoRaul/clients/__pycache__/models.cpython-310.pyc
Normal file
BIN
gestaoRaul/clients/__pycache__/models.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestaoRaul/clients/__pycache__/urls.cpython-310.pyc
Normal file
BIN
gestaoRaul/clients/__pycache__/urls.cpython-310.pyc
Normal file
Binary file not shown.
BIN
gestaoRaul/clients/__pycache__/views.cpython-310.pyc
Normal file
BIN
gestaoRaul/clients/__pycache__/views.cpython-310.pyc
Normal file
Binary file not shown.
3
gestaoRaul/clients/admin.py
Normal file
3
gestaoRaul/clients/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
gestaoRaul/clients/apps.py
Normal file
6
gestaoRaul/clients/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ClientsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'clients'
|
||||
23
gestaoRaul/clients/migrations/0001_initial.py
Normal file
23
gestaoRaul/clients/migrations/0001_initial.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.1.4 on 2024-12-10 00:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Client',
|
||||
fields=[
|
||||
('id', models.AutoField(primary_key=True, serialize=False)),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('active', models.BooleanField(default=True)),
|
||||
('contact', models.CharField(blank=True, max_length=255, null=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
0
gestaoRaul/clients/migrations/__init__.py
Normal file
0
gestaoRaul/clients/migrations/__init__.py
Normal file
Binary file not shown.
Binary file not shown.
8
gestaoRaul/clients/models.py
Normal file
8
gestaoRaul/clients/models.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class Client(models.Model):
|
||||
id = models.AutoField(primary_key=True)
|
||||
name = models.CharField(max_length=255)
|
||||
active = models.BooleanField(default=True)
|
||||
contact = models.CharField(max_length=255, null=True, blank=True)
|
||||
12
gestaoRaul/clients/templates/clients.html
Normal file
12
gestaoRaul/clients/templates/clients.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% block 'title' %}
|
||||
Type Pay
|
||||
{% endblock %}
|
||||
|
||||
{% block 'body' %}
|
||||
Body Type Pay
|
||||
{% endblock %}
|
||||
3
gestaoRaul/clients/tests.py
Normal file
3
gestaoRaul/clients/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
10
gestaoRaul/clients/urls.py
Normal file
10
gestaoRaul/clients/urls.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
from django.urls import path, include
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.clients, name='clients'),
|
||||
|
||||
|
||||
|
||||
]
|
||||
6
gestaoRaul/clients/views.py
Normal file
6
gestaoRaul/clients/views.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
|
||||
def clients(request):
|
||||
return render(request, 'clients.html')
|
||||
Reference in New Issue
Block a user