Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

277
Vistas
Special characters in filenames and paths

I have django app that allows users to enter a query and in response returns a list of documents sorted by their relevance. On clicking the download button the users can download the files. For most cases the option works fine but breaks when the file name or the folder path has special characters (such as - &). The download button contains the location of where the file is located. If the path or filename contains a special character, only the string upto the special character is passed to the function in the views.py file and hence returns a FileNotFoundError at ....

So how do I ensure that django reads the complete path in cases where there are special characters involved

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Use urlencode

{{link_to_file|urlencode}}
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda