urls.py y vista blog

This commit is contained in:
jp.dev 2020-11-21 04:07:02 -03:00
parent de92b0450f
commit 5edad2c840
6 changed files with 15 additions and 4 deletions

View File

@ -22,4 +22,6 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('', include('ProyectoWebApp.urls')),
path('servicios/', include('servicios.urls')),
path('blog/', include('blog.urls')),
]

View File

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

View File

@ -6,9 +6,6 @@ def home(request):
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")

10
ProyectoWeb/blog/urls.py Normal file
View File

@ -0,0 +1,10 @@
from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', views.blog, name ='Blog'),
]

View File

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