Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Flask - Opening second page via href is failing - This site can’t be reached
I have small Python Flask application which is running over IIS Windows server, when trying to navigate to second page I'm getting the error:
"This site can’t be reached"

IIS FastCGI is bending the website to which is working as the main page

The problem is with the href:
<a href="">Open Second Page</a>
I tried also to modify It to below but Its not working
<a href="">Open Second Page</a>

Below is the code:

from flask import Flask, render_template
app = Flask(__name__, static_url_path="/static")
def home():
return render_template('home.html')

def home2():
return render_template('Second.html')

if __name__ == '__main__':

<!DOCTYPE html>
<h1><u> Website</u></h1>
<p>Hi, welcome to the Site</p>
<a href="">Open Second Page</a>
<p> </p>
<img src="/static/smiley.gif" width="50" height="50" align ="bottom" align="center">

Change your HOME doc to:
<a href="< >">Open Second Page</a>
Smile Tnx working

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Flask]After login page is not redirecting me to dashboard shockwave 0 206 May-07-2020, 05:22 PM
Last Post: shockwave
  Flask - adding new page affects all other pages CMR 15 491 Mar-28-2020, 04:13 PM
Last Post: CMR
  use Xpath in Python :: libxml2 for a page-to-page skip-setting apollo 2 447 Mar-19-2020, 06:13 PM
Last Post: apollo
  How to get the href value of a specific word in the html code julio2000 2 325 Mar-05-2020, 07:50 PM
Last Post: julio2000
  Web Scraping on href text Superzaffo 11 859 Nov-16-2019, 10:52 AM
Last Post: Superzaffo
  Flask: Making my first web site Truman 38 5,082 Oct-03-2019, 09:10 PM
Last Post: Truman
  Web Page not opening while web scraping through python selenium sumandas89 4 4,265 Nov-19-2018, 02:47 PM
Last Post: snippsat
  Project: Opening all links within a web page Truman 0 751 Aug-07-2018, 12:33 AM
Last Post: Truman
  Scrapy Picking What to Output Href or Img soothsayerpg 1 902 Aug-02-2018, 10:59 AM
Last Post: soothsayerpg
  Failing to install Flask on Windows using pip shayon 1 986 Jul-11-2018, 12:36 AM
Last Post: micseydel

Forum Jump:

Users browsing this thread: 1 Guest(s)