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

99
Vistas
How to redirect to flask webapp

I am using Flask for the first time using PyCharm CE, my main page has

function getPage () {
    $.ajax({
        url: "main.py",
        context: document.body
    });
}

It automatically grabs the main.py file which has

@app.route('/')
def generateCaptcha():
    return render_template('main.html')

I also have

window.location.href = "http://localhost:63342/Captcha/templates/loading.html

However, that never runs the python file with it. I've also noticed I can't just run main.html. But if I run loading.py, it just downloads the file. How do I redirect to another HTML page and link it to a Python page using Flask.

about 4 years ago · Juan Pablo Isaza
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