creacioin app contacto

This commit is contained in:
jp.dev 2020-11-23 20:04:39 -03:00
parent 8eb869b958
commit e5c6687d6f
19 changed files with 32 additions and 6 deletions

View File

@ -40,6 +40,7 @@ INSTALLED_APPS = [
'ProyectoWebApp', 'ProyectoWebApp',
'servicios', 'servicios',
'blog', 'blog',
'contacto',
] ]
MIDDLEWARE = [ MIDDLEWARE = [

View File

@ -23,5 +23,6 @@ urlpatterns = [
path('', include('ProyectoWebApp.urls')), path('', include('ProyectoWebApp.urls')),
path('servicios/', include('servicios.urls')), path('servicios/', include('servicios.urls')),
path('blog/', include('blog.urls')), path('blog/', include('blog.urls')),
path('contacto/', include('contacto.urls')),
] ]

View File

@ -7,7 +7,6 @@ from django.conf.urls.static import static
urlpatterns = [ urlpatterns = [
path('', views.home, name="Inicio"), path('', views.home, name="Inicio"),
path('tienda', views.tienda, name ='Tienda'), path('tienda', views.tienda, name ='Tienda'),
path('contacto', views.contacto, name='Contacto'),
path('sample/', views.sample, name ='Sample'), path('sample/', views.sample, name ='Sample'),
] ]

View File

@ -5,10 +5,7 @@ def home(request):
def tienda(request): def tienda(request):
return render(request, "ProyectoWebApp/tienda.html") return render(request, "ProyectoWebApp/tienda.html")
def contacto(request):
return render(request, "ProyectoWebApp/contacto.html")
def sample(request): def sample(request):
return render(request, "ProyectoWebApp/sample.html") return render(request, "ProyectoWebApp/sample.html")

View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

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

View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class ContactoConfig(AppConfig):
name = 'contacto'

View File

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

View File

@ -4,7 +4,7 @@
{% block content %} {% block content %}
<div><p>Contacto</p></div> <div><h2><p class="site-heading text-center text-white d-none d-lg-block">Contacto</p></h2></div>
{% endblock %} {% endblock %}

View File

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

View File

@ -0,0 +1,8 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.contacto, name="Contacto"),
]

View File

@ -0,0 +1,6 @@
from django.shortcuts import render
# Create your views here.
def contacto(request):
return render(request, "contacto/contacto.html")