<repo_name>Rafael-Soares/ProjetoFinal<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0017_auto_20210411_2236.py
# Generated by Django 2.2.20 on 2021-04-12 01:36

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0016_auto_20210411_1949'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='quemsomos',
            name='apresentacao',
        ),
        migrations.RemoveField(
            model_name='quemsomos',
            name='imageQuemSomos',
        ),
        migrations.RemoveField(
            model_name='servicos',
            name='imageServico',
        ),
        migrations.AddField(
            model_name='portifolio',
            name='nome',
            field=models.CharField(blank=True, max_length=50, verbose_name='Nome do aluno'),
        ),
        migrations.AddField(
            model_name='portifolio',
            name='nota',
            field=models.IntegerField(blank=True, default=0, verbose_name='Nota'),
        ),
        migrations.AddField(
            model_name='quemsomos',
            name='oferecimento',
            field=models.TextField(blank=True, verbose_name='O que oferecemos'),
        ),
        migrations.AddField(
            model_name='quemsomos',
            name='oque_fazemos',
            field=models.TextField(blank=True, verbose_name='O que fazemos'),
        ),
        migrations.AddField(
            model_name='quemsomos',
            name='valores',
            field=models.TextField(blank=True, verbose_name='Valores'),
        ),
        migrations.AlterField(
            model_name='contato',
            name='celular',
            field=models.CharField(blank=True, max_length=13, verbose_name='Celular'),
        ),
        migrations.AlterField(
            model_name='contato',
            name='email',
            field=models.CharField(blank=True, max_length=255, verbose_name='E-mail'),
        ),
        migrations.AlterField(
            model_name='contato',
            name='telefone',
            field=models.CharField(blank=True, max_length=12, verbose_name='Telefone'),
        ),
        migrations.AlterField(
            model_name='painel',
            name='sloganPainel',
            field=models.CharField(blank=True, max_length=255, verbose_name='Slogan do painel'),
        ),
        migrations.AlterField(
            model_name='portifolio',
            name='descricaoPortifolio',
            field=models.TextField(blank=True, verbose_name='Descrição'),
        ),
        migrations.AlterField(
            model_name='quemsomos',
            name='titulo',
            field=models.CharField(blank=True, max_length=50, verbose_name='Título'),
        ),
        migrations.AlterField(
            model_name='servicos',
            name='descrição_do_servico',
            field=models.TextField(blank=True, verbose_name='Descrição'),
        ),
        migrations.AlterField(
            model_name='servicos',
            name='nome',
            field=models.CharField(blank=True, max_length=50, verbose_name='Nome do serviço'),
        ),
        migrations.AlterField(
            model_name='servicos',
            name='preço',
            field=models.IntegerField(blank=True, default=0, verbose_name='Preço'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/requirements.txt
# para instalar as dependências é necessário que execute o seguinte comando: pip install -r requirements.txt

Django==2.2.4           # INSTALAÇÃO DO DJANGO
Pillow==8.2.0           # PARA UTILIZAR O IMAGEFIELD
pylint==2.7.4           # UTILIZADO PARA VERICAÇÃO DE ERROS
pylint-django==2.4.3    # UTILIZADO PARA VERICAÇÃO DE ERROS
psycopg2==2.8.6         # PARA COMUNICAÇÃO COM POSTGRESQL
psycopg2-binary==2.8.6  # PARA COMUNICAÇÃO COM POSTGRESQL<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0027_auto_20210415_1215.py
# Generated by Django 2.2.20 on 2021-04-15 15:15

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0026_remove_quemsomos_titulo'),
    ]

    operations = [
        migrations.RenameField(
            model_name='servicos',
            old_name='logo_servico',
            new_name='logoServico',
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0009_auto_20210408_1628.py
# Generated by Django 3.1.7 on 2021-04-08 19:28

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0008_auto_20210408_1627'),
    ]

    operations = [
        migrations.AlterField(
            model_name='painel',
            name='imagePainel',
            field=models.ImageField(blank=True, upload_to='imagens/'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/admin.py
from django.contrib import admin
from .models import * #esse asteristíco importa todas as classes do models
# Register your models here.

admin.site.register(home)    
admin.site.register(quemSomos)
admin.site.register(servicos)
admin.site.register(portifolio)
admin.site.register(pacotes)

#username -> aprenderecrescer
#senha -> <PASSWORD><file_sep>/DesenvolvimentoBack/apps/institucional/models.py
from django.db import models
from datetime import datetime
   
class home(models.Model): 
    quantidade_parcelas = models.IntegerField('Quantidade de Parcelas', default=0)
    preco_card = models.FloatField('Preço do Card', default=0)
    descricao_card = models.TextField('Descrição do Card', blank=True)
    data_modificacao = models.DateTimeField('Data de modificação', default=datetime.now, blank=True)

class quemSomos(models.Model):
    oferecimento = models.TextField('O que oferecemos', blank=True)
    oque_fazemos = models.TextField('O que fazemos', blank=True)
    valores = models.TextField('Valores da instituição', blank=True)
    data_modificacao = models.DateTimeField('Data de modificação', default=datetime.now, blank=True)

class servicos(models.Model):
    logoServico = models.ImageField('Logo do serviço', upload_to='imagens/', blank=True)
    nome = models.CharField('Nome do serviço', max_length=50, blank=True)
    descrição_do_servico = models.TextField('Descrição', blank=True)
    data_modificacao = models.DateTimeField('Data de modificação', default=datetime.now, blank=True)

class portifolio(models.Model):
    imagePortifolio = models.ImageField('Imagem', upload_to='imagens/', blank=True)
    nome = models.CharField('Nome do aluno', max_length=50, blank=True)
    nota = models.IntegerField('Nota', default=0, blank=True)
    descricaoPortifolio = models.TextField('Descrição', blank=True)
    data_modificacao = models.DateTimeField('Data de modificação', default=datetime.now, blank=True)

class pacotes(models.Model):
    duracao_pacote = models.CharField('Duração do Pacote', max_length=30)
    quantidade_parcelas = models.IntegerField('Quantidade de parcelas', default=0)
    valor_parcela = models.FloatField('Valor da parcela', default= 0)
    valor_a_vista = models.FloatField('Valor à vista', default=0)
    desconto = models.IntegerField('Porcentagem de desconto', default=0)
    data_modificacao = models.DateTimeField('Data de modificação', default=datetime.now, blank=True)
<file_sep>/DesenvolvimentoBack/apps/institucional/forms.py
from django import forms
from django.core.mail import send_mail
from django.conf import settings
from .mail import send_mail_template

class FormContato(forms.Form):
    nome = forms.CharField(label = 'Nome', max_length=100, widget=forms.TextInput(attrs={'id':'name', 'type':'text', 'placeholder':'Nome'}))
    telefone = forms.IntegerField(label = 'Telefone', widget=forms.TextInput(attrs={'id':'company', 'type':'number', 'placeholder':'Telefone'}))
    email  = forms.EmailField(label = 'Email', widget=forms.TextInput(attrs={'id':'email', 'type':'email', 'placeholder':'E-mail'}))
    assunto = forms.CharField(label = 'Assunto', max_length=50, widget=forms.TextInput(attrs={'id':'phone', 'type':'text', 'placeholder':'Assunto'}))
    mensagem = forms.CharField(label = 'Mensagem', widget=forms.Textarea(attrs={'id':'message' , 'type':'text', 'rows':'5' , 'placeholder':'Mensagem'}))

    def send_mail(self):
        assunto = self.cleaned_data['assunto']
        context = {
            'nome':     self.cleaned_data['nome'],
            'telefone': self.cleaned_data['telefone'],
            'email':    self.cleaned_data['email'],
            'mensagem': self.cleaned_data['mensagem']
        }

        template_html = 'contato.html'
        send_mail_template(assunto, template_html, context, [settings.CONTACT_EMAIL])

<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0015_delete_redessociais.py
# Generated by Django 2.2.20 on 2021-04-11 22:48

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0014_auto_20210411_1352'),
    ]

    operations = [
        migrations.DeleteModel(
            name='redesSociais',
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0004_auto_20210408_1146.py
# Generated by Django 3.1.7 on 2021-04-08 14:46

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0003_portifolio'),
    ]

    operations = [
        migrations.AlterField(
            model_name='contato',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='portifolio',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='quemsomos',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='redessociais',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='servicos',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/core/static/js/script.js
/*AQUI FICAM OS CÓDIGOS JAVASCRIPT*/<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0001_initial.py
# Generated by Django 3.1.7 on 2021-04-07 13:03

import datetime
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='contato',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('email', models.CharField(max_length=255)),
                ('telefone', models.CharField(max_length=12)),
                ('celular', models.CharField(max_length=13)),
                ('data_modificacao', models.DateTimeField(blank=True, default=datetime.datetime.now)),
            ],
        ),
        migrations.CreateModel(
            name='quemSomos',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('apresentacao', models.TextField()),
                ('titulo', models.CharField(max_length=30)),
                ('data_modificacao', models.DateTimeField(blank=True, default=datetime.datetime.now)),
            ],
        ),
        migrations.CreateModel(
            name='redesSociais',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nomeRS', models.CharField(max_length=30)),
                ('link', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='servicos',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(max_length=50)),
                ('descrição_do_servico', models.TextField()),
                ('preço', models.CharField(max_length=13)),
            ],
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0020_quemsomos_titulo.py
# Generated by Django 2.2.20 on 2021-04-12 03:21

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0019_remove_quemsomos_titulo'),
    ]

    operations = [
        migrations.AddField(
            model_name='quemsomos',
            name='titulo',
            field=models.CharField(blank=True, max_length=50, verbose_name='Título'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0016_auto_20210411_1949.py
# Generated by Django 2.2.20 on 2021-04-11 22:49

import datetime
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0015_delete_redessociais'),
    ]

    operations = [
        migrations.AddField(
            model_name='painel',
            name='data_modificacao',
            field=models.DateTimeField(blank=True, default=datetime.datetime.now, verbose_name='Data de modificação'),
        ),
        migrations.AddField(
            model_name='portifolio',
            name='data_modificacao',
            field=models.DateTimeField(blank=True, default=datetime.datetime.now, verbose_name='Data de modificação'),
        ),
        migrations.AddField(
            model_name='servicos',
            name='data_modificacao',
            field=models.DateTimeField(blank=True, default=datetime.datetime.now, verbose_name='Data de modificação'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0005_quemsomos_imageqs.py
# Generated by Django 3.1.7 on 2021-04-08 14:51

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0004_auto_20210408_1146'),
    ]

    operations = [
        migrations.AddField(
            model_name='quemsomos',
            name='imageQS',
            field=models.ImageField(blank=True, upload_to='imagens/'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0024_auto_20210413_2228.py
# Generated by Django 2.2.20 on 2021-04-14 01:28

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0023_auto_20210413_1801'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='home',
            name='imageHome',
        ),
        migrations.RemoveField(
            model_name='home',
            name='slogan_home',
        ),
        migrations.AddField(
            model_name='home',
            name='quantidade_parcelas',
            field=models.IntegerField(default=0, verbose_name='Quantidade de Parcelas'),
        ),
        migrations.AddField(
            model_name='pacotes',
            name='valor_a_vista',
            field=models.FloatField(default=0, verbose_name='Valor à vista'),
        ),
        migrations.AddField(
            model_name='pacotes',
            name='valor_parcela',
            field=models.FloatField(default=0, verbose_name='Valor da parcela'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0019_remove_quemsomos_titulo.py
# Generated by Django 2.2.20 on 2021-04-12 03:12

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0018_auto_20210412_0004'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='quemsomos',
            name='Titulo',
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0023_auto_20210413_1801.py
# Generated by Django 2.2.20 on 2021-04-13 21:01

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0022_auto_20210412_2215'),
    ]

    operations = [
        migrations.AlterField(
            model_name='home',
            name='preco_card',
            field=models.FloatField(default=0, verbose_name='Preço do Card'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0018_auto_20210412_0004.py
# Generated by Django 2.2.20 on 2021-04-12 03:04

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0017_auto_20210411_2236'),
    ]

    operations = [
        migrations.RenameField(
            model_name='quemsomos',
            old_name='titulo',
            new_name='Titulo',
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0013_merge_0011_auto_20210408_2207_0012_auto_20210409_1009.py
# Generated by Django 3.2 on 2021-04-09 16:04

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0011_auto_20210408_2207'),
        ('institucional', '0012_auto_20210409_1009'),
    ]

    operations = [
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0021_auto_20210412_0035.py
# Generated by Django 2.2.20 on 2021-04-12 03:35

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0020_quemsomos_titulo'),
    ]

    operations = [
        migrations.RenameField(
            model_name='servicos',
            old_name='preço',
            new_name='preco_servico',
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0006_auto_20210408_1426.py
# Generated by Django 3.1.7 on 2021-04-08 17:26

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0005_quemsomos_imageqs'),
    ]

    operations = [
        migrations.CreateModel(
            name='painel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sloganPainel', models.CharField(max_length=255)),
                ('imagePainel', models.ImageField(blank=True, upload_to='imagens/')),
            ],
        ),
        migrations.RenameField(
            model_name='portifolio',
            old_name='descricao_port',
            new_name='descricaoPortifolio',
        ),
        migrations.RenameField(
            model_name='quemsomos',
            old_name='imageQS',
            new_name='imageQuemSomos',
        ),
        migrations.AddField(
            model_name='portifolio',
            name='imagePortifolio',
            field=models.ImageField(blank=True, upload_to='imagens/'),
        ),
        migrations.AddField(
            model_name='servicos',
            name='imageServico',
            field=models.ImageField(blank=True, upload_to='imagens/'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0008_auto_20210408_1627.py
# Generated by Django 3.1.7 on 2021-04-08 19:27

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0007_auto_20210408_1623'),
    ]

    operations = [
        migrations.AlterField(
            model_name='painel',
            name='imagePainel',
            field=models.ImageField(blank=True, upload_to='../pagina/static/imagem'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0014_auto_20210411_1352.py
# Generated by Django 2.2.20 on 2021-04-11 16:52

import datetime
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0013_merge_0011_auto_20210408_2207_0012_auto_20210409_1009'),
    ]

    operations = [
        migrations.AlterField(
            model_name='contato',
            name='celular',
            field=models.CharField(max_length=13, verbose_name='Celular'),
        ),
        migrations.AlterField(
            model_name='contato',
            name='data_modificacao',
            field=models.DateTimeField(blank=True, default=datetime.datetime.now, verbose_name='Data de modificação'),
        ),
        migrations.AlterField(
            model_name='contato',
            name='email',
            field=models.CharField(max_length=255, verbose_name='E-mail'),
        ),
        migrations.AlterField(
            model_name='contato',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='contato',
            name='telefone',
            field=models.CharField(max_length=12, verbose_name='Telefone'),
        ),
        migrations.AlterField(
            model_name='painel',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='painel',
            name='imagePainel',
            field=models.ImageField(blank=True, upload_to='imagens/', verbose_name='Imagem'),
        ),
        migrations.AlterField(
            model_name='painel',
            name='sloganPainel',
            field=models.CharField(max_length=255, verbose_name='Slogan do painel'),
        ),
        migrations.AlterField(
            model_name='portifolio',
            name='descricaoPortifolio',
            field=models.TextField(verbose_name='Descrição'),
        ),
        migrations.AlterField(
            model_name='portifolio',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='portifolio',
            name='imagePortifolio',
            field=models.ImageField(blank=True, upload_to='imagens/', verbose_name='Imagem'),
        ),
        migrations.AlterField(
            model_name='quemsomos',
            name='apresentacao',
            field=models.TextField(verbose_name='Apresentação'),
        ),
        migrations.AlterField(
            model_name='quemsomos',
            name='data_modificacao',
            field=models.DateTimeField(blank=True, default=datetime.datetime.now, verbose_name='Data de modificação'),
        ),
        migrations.AlterField(
            model_name='quemsomos',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='quemsomos',
            name='imageQuemSomos',
            field=models.ImageField(blank=True, upload_to='imagens/', verbose_name='Imagem'),
        ),
        migrations.AlterField(
            model_name='quemsomos',
            name='titulo',
            field=models.CharField(max_length=50, verbose_name='Título'),
        ),
        migrations.AlterField(
            model_name='redessociais',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='redessociais',
            name='link',
            field=models.CharField(max_length=100, verbose_name='Link de aceeso à rede'),
        ),
        migrations.AlterField(
            model_name='redessociais',
            name='nomeRS',
            field=models.CharField(max_length=30, verbose_name='Nome na rede'),
        ),
        migrations.AlterField(
            model_name='servicos',
            name='descrição_do_servico',
            field=models.TextField(verbose_name='Descrição'),
        ),
        migrations.AlterField(
            model_name='servicos',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='servicos',
            name='imageServico',
            field=models.ImageField(blank=True, upload_to='imagens/', verbose_name='Imagem'),
        ),
        migrations.AlterField(
            model_name='servicos',
            name='nome',
            field=models.CharField(max_length=50, verbose_name='Nome do serviço'),
        ),
        migrations.AlterField(
            model_name='servicos',
            name='preço',
            field=models.CharField(max_length=13, verbose_name='Preço'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/urls.py
from django.urls import path
from . import views 
urlpatterns = [
    path ('', views.index, name ='index'),
    path('notfound', views.notfound, name='notfound')
]<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0022_auto_20210412_2215.py
# Generated by Django 2.2.20 on 2021-04-13 01:15

import datetime
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0021_auto_20210412_0035'),
    ]

    operations = [
        migrations.CreateModel(
            name='home',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('slogan_home', models.CharField(blank=True, max_length=255, verbose_name='Slogan do Home')),
                ('imageHome', models.ImageField(blank=True, upload_to='imagens/', verbose_name='Imagem')),
                ('descricao_card', models.TextField(blank=True, verbose_name='Descrição do Card')),
                ('preco_card', models.IntegerField(default=0, verbose_name='Preço do Card')),
                ('data_modificacao', models.DateTimeField(blank=True, default=datetime.datetime.now, verbose_name='Data de modificação')),
            ],
        ),
        migrations.CreateModel(
            name='pacotes',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('duracao_pacote', models.CharField(max_length=30, verbose_name='Duração do Pacote')),
                ('quantidade_parcelas', models.IntegerField(default=0, verbose_name='Quantidade de parcelas')),
                ('desconto', models.IntegerField(default=0, verbose_name='Porcentagem de desconto')),
                ('atributos_pacote', models.TextField(blank=True, verbose_name='Atributos do pacote')),
                ('data_modificacao', models.DateTimeField(blank=True, default=datetime.datetime.now, verbose_name='Data de modificação')),
            ],
        ),
        migrations.DeleteModel(
            name='contato',
        ),
        migrations.DeleteModel(
            name='painel',
        ),
        migrations.RemoveField(
            model_name='servicos',
            name='preco_servico',
        ),
        migrations.AlterField(
            model_name='quemsomos',
            name='valores',
            field=models.TextField(blank=True, verbose_name='Valores da instituição'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0026_remove_quemsomos_titulo.py
# Generated by Django 2.2.4 on 2021-04-14 20:16

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0025_auto_20210414_1658'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='quemsomos',
            name='titulo',
        ),
    ]
<file_sep>/README.md
# Site Institucional Aprender é Crescer

## Descrição do Projeto
<p align = "center">Esse projeto foi feito para conclusão de um Trainee da EJECT</p>

Tabela de conteúdos
=================
<!--ts-->
   * [Sobre](#Sobre)
   * [Tabela de Conteudo](#tabela-de-conteudo)
   * [Instalação](#instalacao)
   * [Como usar](#como-usar)
      * [Pre Requisitos](#pre-requisitos)
      * [Local files](#local-files)
      * [Remote files](#remote-files)
      * [Combo](#combo)
   * [Tecnologias](#tecnologias)
<!--te-->
<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0025_auto_20210414_1658.py
# Generated by Django 2.2.4 on 2021-04-14 19:58

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0024_auto_20210413_2228'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='pacotes',
            name='atributos_pacote',
        ),
        migrations.AddField(
            model_name='servicos',
            name='logo_servico',
            field=models.ImageField(blank=True, upload_to='imagens/', verbose_name='Logo do serviço'),
        ),
    ]
<file_sep>/DesenvolvimentoBack/apps/institucional/views.py
from django.shortcuts import render
from django.core.mail import send_mail
from .forms import FormContato
from .models import * #esse asteristíco importa todas as classes do models

#RECUPERANDO VALORES DAS MODELS
def index(request):
    Home = home.objects.last()
    Quem_Somos = quemSomos.objects.last()
    servicosAll = servicos.objects.all()[1:]
    Portifolio = portifolio.objects.all()
    pacotinho = pacotes.objects.all()
    servicos1 = servicos.objects.first()
    message = False

# Objetos específicos que ficam nos cards do portifólio
    id1 = Portifolio.get(id=2)
    id2 = Portifolio.get(id=3)
    id3 = Portifolio.get(id=4)

    context = {}

    if request.method == 'POST':
        form = FormContato(request.POST)
        if form.is_valid():
            message = True
            form.send_mail()
            form = FormContato()
    else:
        form = FormContato()

#PASSANDO VALORES PARA UM DICIONÁRIO
    context = { 
        'Home': Home,
        'quemSomos' : Quem_Somos,
        'servico': servicosAll,
        'servico1': servicos1,
        'portifolio': Portifolio,
        'paco': pacotinho,
        'form': form,
        'id1': id1,
        'id2': id2,
        'id3': id3,
        'mensagem': message
    }

    return render(request, 'index.html', context)

def notfound(request):
    return render(request, 'notfound.html')<file_sep>/DesenvolvimentoBack/apps/institucional/mail.py
from django.template.loader import render_to_string
from django.template.defaultfilters import strip_tags
from django.core.mail import EmailMultiAlternatives
from django.conf import settings 

def send_mail_template(assunto, template_html, context, para_email, de_email=settings.DEFAULT_FROM_EMAIL, fail_silently=False):
    mensagem_html = render_to_string(template_html, context)
    mensagem_txt = strip_tags(template_html)

    #subject, body, from_email e to, são padrões da classe EmailLMultiAlternatives
    email = EmailMultiAlternatives(
        subject = assunto, body = mensagem_txt, from_email = de_email, to = para_email 
    )

    email.attach_alternative(mensagem_html, "text/html")
    email.send(fail_silently=fail_silently)