Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

98
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!