+/ProyectoWebApp/ views urls models

This commit is contained in:
jp.av.dev 2020-11-16 21:09:23 -03:00
parent 095288a44c
commit 86a09d373e
3 changed files with 31 additions and 0 deletions

View File

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

View File

@ -0,0 +1,10 @@
from django.urls import path
from ProyectoWebApp import views
urlpatterns = [
path('', views.home, name="Inicio"),
path('servicios/', views.servicios, name ='Servicios'),
path('tienda/', views.tienda, name ='Tienda'),
path('blog/', views.blog, name ='Blog'),
path('contacto/', views.contacto, name='Contacto'),
]

View File

@ -0,0 +1,18 @@
from django.shortcuts import render, HttpResponse
def home(request):
return render(request, "ProyectoWebApp/home.html")
def servicios(request):
return render(request, "ProyectoWebApp/servicios.html")
def tienda(request):
return render(request, "ProyectoWebApp/tienda.html")
def blog(request):
return render(request, "ProyectoWebApp/blog.html")
def contacto(request):
return render(request, "ProyectoWebApp/contacto.html")