creacioin app contacto
This commit is contained in:
parent
8eb869b958
commit
e5c6687d6f
@ -40,6 +40,7 @@ INSTALLED_APPS = [
|
||||
'ProyectoWebApp',
|
||||
'servicios',
|
||||
'blog',
|
||||
'contacto',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
@ -23,5 +23,6 @@ urlpatterns = [
|
||||
path('', include('ProyectoWebApp.urls')),
|
||||
path('servicios/', include('servicios.urls')),
|
||||
path('blog/', include('blog.urls')),
|
||||
path('contacto/', include('contacto.urls')),
|
||||
]
|
||||
|
||||
|
@ -7,7 +7,6 @@ from django.conf.urls.static import static
|
||||
urlpatterns = [
|
||||
path('', views.home, name="Inicio"),
|
||||
path('tienda', views.tienda, name ='Tienda'),
|
||||
path('contacto', views.contacto, name='Contacto'),
|
||||
path('sample/', views.sample, name ='Sample'),
|
||||
]
|
||||
|
||||
|
@ -5,10 +5,7 @@ def home(request):
|
||||
|
||||
def tienda(request):
|
||||
return render(request, "ProyectoWebApp/tienda.html")
|
||||
|
||||
def contacto(request):
|
||||
return render(request, "ProyectoWebApp/contacto.html")
|
||||
|
||||
|
||||
def sample(request):
|
||||
return render(request, "ProyectoWebApp/sample.html")
|
||||
|
||||
|
0
ProyectoWeb/contacto/__init__.py
Normal file
0
ProyectoWeb/contacto/__init__.py
Normal file
BIN
ProyectoWeb/contacto/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
ProyectoWeb/contacto/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
BIN
ProyectoWeb/contacto/__pycache__/admin.cpython-38.pyc
Normal file
BIN
ProyectoWeb/contacto/__pycache__/admin.cpython-38.pyc
Normal file
Binary file not shown.
BIN
ProyectoWeb/contacto/__pycache__/models.cpython-38.pyc
Normal file
BIN
ProyectoWeb/contacto/__pycache__/models.cpython-38.pyc
Normal file
Binary file not shown.
BIN
ProyectoWeb/contacto/__pycache__/urls.cpython-38.pyc
Normal file
BIN
ProyectoWeb/contacto/__pycache__/urls.cpython-38.pyc
Normal file
Binary file not shown.
BIN
ProyectoWeb/contacto/__pycache__/views.cpython-38.pyc
Normal file
BIN
ProyectoWeb/contacto/__pycache__/views.cpython-38.pyc
Normal file
Binary file not shown.
3
ProyectoWeb/contacto/admin.py
Normal file
3
ProyectoWeb/contacto/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
5
ProyectoWeb/contacto/apps.py
Normal file
5
ProyectoWeb/contacto/apps.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ContactoConfig(AppConfig):
|
||||
name = 'contacto'
|
0
ProyectoWeb/contacto/migrations/__init__.py
Normal file
0
ProyectoWeb/contacto/migrations/__init__.py
Normal file
Binary file not shown.
3
ProyectoWeb/contacto/models.py
Normal file
3
ProyectoWeb/contacto/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
@ -4,7 +4,7 @@
|
||||
|
||||
{% 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 %}
|
||||
|
3
ProyectoWeb/contacto/tests.py
Normal file
3
ProyectoWeb/contacto/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
8
ProyectoWeb/contacto/urls.py
Normal file
8
ProyectoWeb/contacto/urls.py
Normal file
@ -0,0 +1,8 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.contacto, name="Contacto"),
|
||||
]
|
||||
|
||||
|
6
ProyectoWeb/contacto/views.py
Normal file
6
ProyectoWeb/contacto/views.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
def contacto(request):
|
||||
return render(request, "contacto/contacto.html")
|
||||
|
Loading…
Reference in New Issue
Block a user