intro_Django/ProyectoWeb/ProyectoWebApp/urls.py

18 lines
539 B
Python
Raw Normal View History

2020-11-16 21:09:23 -03:00
from django.urls import path
from ProyectoWebApp import views
2020-11-20 15:43:51 -03:00
from django.conf import settings
from django.conf.urls.static import static
2020-11-16 21:09:23 -03:00
urlpatterns = [
path('', views.home, name="Inicio"),
2020-11-17 04:34:32 -03:00
path('servicios', views.servicios, name ='Servicios'),
path('tienda', views.tienda, name ='Tienda'),
path('blog', views.blog, name ='Blog'),
path('contacto', views.contacto, name='Contacto'),
2020-11-17 03:30:16 -03:00
path('sample/', views.sample, name ='Sample'),
2020-11-16 21:09:23 -03:00
]
2020-11-20 15:43:51 -03:00
urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)