intro_Django/ProyectoWeb/ProyectoWebApp/urls.py

16 lines
382 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 20:52:22 -03:00
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('tienda', views.tienda, name ='Tienda'),
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
2020-11-20 20:52:22 -03:00
2020-11-20 15:43:51 -03:00
urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)