urls.py y vista blog
This commit is contained in:
parent
de92b0450f
commit
5edad2c840
@ -22,4 +22,6 @@ urlpatterns = [
|
|||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('', include('ProyectoWebApp.urls')),
|
path('', include('ProyectoWebApp.urls')),
|
||||||
path('servicios/', include('servicios.urls')),
|
path('servicios/', include('servicios.urls')),
|
||||||
|
path('blog/', include('blog.urls')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -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('blog', views.blog, name ='Blog'),
|
|
||||||
path('contacto', views.contacto, name='Contacto'),
|
path('contacto', views.contacto, name='Contacto'),
|
||||||
path('sample/', views.sample, name ='Sample'),
|
path('sample/', views.sample, name ='Sample'),
|
||||||
]
|
]
|
||||||
|
@ -6,9 +6,6 @@ def home(request):
|
|||||||
def tienda(request):
|
def tienda(request):
|
||||||
return render(request, "ProyectoWebApp/tienda.html")
|
return render(request, "ProyectoWebApp/tienda.html")
|
||||||
|
|
||||||
def blog(request):
|
|
||||||
return render(request, "ProyectoWebApp/blog.html")
|
|
||||||
|
|
||||||
def contacto(request):
|
def contacto(request):
|
||||||
return render(request, "ProyectoWebApp/contacto.html")
|
return render(request, "ProyectoWebApp/contacto.html")
|
||||||
|
|
||||||
|
10
ProyectoWeb/blog/urls.py
Normal file
10
ProyectoWeb/blog/urls.py
Normal 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'),
|
||||||
|
]
|
||||||
|
|
@ -1,3 +1,6 @@
|
|||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
|
|
||||||
|
def blog(request):
|
||||||
|
return render(request, "blog/blog.html")
|
||||||
|
Loading…
Reference in New Issue
Block a user