Explorar el Código

actualizar urlpatterns si no debug

creylopez hace 1 año
padre
commit
2c8bbd1eaa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      gestion_reservas/gestion_reservas/urls.py

+ 1 - 1
gestion_reservas/gestion_reservas/urls.py

@@ -40,7 +40,7 @@ urlpatterns = [
 
 ]
 
-if settings.DEBUG:
+if !settings.DEBUG:
     urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
     urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)