text: """musicpro URL Configuration
  
  The `urlpatterns` list routes URLs to views. For more information please see:
      https://docs.djangoproject.com/en/3.2/topics/http/urls/
  Examples:
  Function views
      1. Add an import:  from my_app import views
      2. Add a URL to urlpatterns:  path('', views.home, name='home')
  Class-based views
      1. Add an import:  from other_app.views import Home
      2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
  Including another URLconf
      1. Import the include() function: from django.urls import include, path
      2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
  """
  
  from django.contrib import admin
  from django.urls import path
  from django.urls.conf import include
  from . import views
  from django.conf.urls.static import static
  from django.conf import settings
  from rest_framework import routers
  
  router = routers.DefaultRouter()
  router.register('producto', views.ProductoViewSet)
  router.register('usuario', views.UsuarioViewSet)
  
  urlpatterns = [
      path('', views.viewCatalogo),
      path('admin/', admin.site.urls),
      path('login/', views.login),
      path('trylogin/', views.tryPass),
      path('logout/', views.logout),
      path('producto/<int:id>/', views.viewProducto),
      path('producto/nuevo/', views.newProducto),
      path('producto/<int:id>/editar/', views.editProducto),
      path('reporteVentas', views.viewVentas),
      path('productosLista/', views.viewProductosLista),
      path('usuariosLista/', views.viewUsuariosLista),
      path('usuario/nuevo/', views.newUsuario),
      path('usuario/<int:id>/', views.viewUsuario),
      path('usuario/<int:id>/editar/', views.editUsuario),
      path('reporteriaVentas', views.viewVentas),
      path('registro/', views.registroView),
      path('registrar/', views.registrarse),
      path('registrar/mas/', views.registrarse),
      path('catalogo/', views.viewCatalogo),
      path('catalogo/<int:pag>', views.viewCatalogo),
      path('catalogo/<str:tab>/', views.viewCatalogo),
      path('catalogo/<str:tab>/<int:pag>', views.viewCatalogo),
      path('seguimiento/', views.seguimientoView),
      path('venta/<int:id>/', views.cargarVenta),
      path('venta/tomar/<int:id>/', views.tomarVenta),
      path('carrito/', views.productosCarrito),
      path('carrito/add/', views.anniadirCarrito),
      path('carrito/remove/', views.quitarCarrito),
      path('carrito/limpiar/', views.limpiarCarrito),
      path('carrito/edit/', views.cambiarCarrito),
      path('ventasDatos/', views.ventasDatos),
      path('transferencia/', views.transferencia),
      path('datosVenta/', views.registrarDatos),
      path('transbank/', views.transbankView),
      path('api/', include(router.urls)),
      path('api/login/', views.loginRest),
      
      
  ]
  
  urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)