Posts

Showing posts with the label Python-flask

How to call stylesheet path Inside Python Index.html

Image
 How to call stylesheet path Inside Python Index.html  <!-- Styles --> < link href ="https://fonts.googleapis.com/css?family=Raleway:400,400i,600,700,700i &amp; subset=latin-ext" rel ="stylesheet" > < link rel ="stylesheet" href ="{{ url_for('static', filename='css/bootstrap.css') }}" > < link rel ="stylesheet" href ="{{ url_for('static', filename='css/fontawesome-all.css') }}" > < link rel ="stylesheet" href ="{{ url_for('static', filename='css/swiper.css') }}" > < link rel ="stylesheet" href ="{{ url_for('static', filename='css/magnific-popup.css') }}" > < link rel ="stylesheet" href =" {{ url_for('static', filename='css/styles.css') }} " > <!-- Favicon --> < link rel ="icon" href ="{{ url_for('static',

Redirecting to another page with button click in Python-flask

Image
  Redirecting to another page with  click in Python-flask Suppose we have to attach any html page Link in any webpage in python  < a class ="dropdown-item" href = "{{ url_for('terms') }}" >< span class ="item-text" > Terms Conditions </ span ></ a > < div class ="dropdown-items-divide-hr" ></ div > < a class ="dropdown-item" href = "{{ url_for('privacy') }}" >< span class ="item-text" > Privacy Policy </ span ></ a > THEN GO TO UR MAIN.PY PAGE : @app.route ( '/terms' )===> it is the name of file which we have mentioned inside href of above def terms():====> keep it same as name above return render_template( 'terms-conditions.html' )====then this page will open when click avove link::: Terms Conditions - Evolo - StartUp HTML Landing Page Template @app.route ( '/privacy' ) ===> it is the nam