samedi 19 janvier 2019

my 127.0.0.1:5000 page is not getting refresh using flask python and HTML ,css

i am using flask as web frame using python. i am facing the following problem

  1. http://127.0.0.1:5000/profile/World page is not getting refresh , even thought when i change content in my profile.html page, it is loading previously loaded content. its not getting refresh.
  2. and when i use style.css and call the link in profile.html , css file is not working.

    from flask import Flask, render_template

    app = Flask(name) app.debug = True

    @app.route('/profile/') def profile(name): return render_template("profile.html", name=name)

    if name == "main": app.run(debug=True)

    Flask

    welcome to Flask World,

`h1{ color: aquamarine; }

Thank you all




Aucun commentaire:

Enregistrer un commentaire