What do you want to save?
Add Code snippet
New code examples
-
Html 2022-03-06 03:40:18
How to connect your app project with home.html
from flask import Flask, render_template app = Flask(__name__) @app.route("/") def home(): return render_template("home.html") @app.route("/about) def about(): return render_template("about.html") if ... Add solution -
Python 2022-02-19 03:10:03
bootstrap Navbar active in django
# navbar_demo/pages/views.py... '''We will pass a unique variable for each page whose value will be 'active' to make a page active in navbar when it call.''' def index(request): context = {"home_page": "active"} # new info he... Add solution -
Html 2021-11-21 05:18:10
css for for navigation manu site:stackoverflow.com
<div class="nav"> <div id="nav-wrapper"> <ul> <li><a href="about.html">About</a></li> <li><a href="portfolio.html">Portfolio</a&... Add solution -
Javascript 2021-11-14 00:20:24
express load a page
const express = require('express'); const app = express(); const path = require('path'); const router = express.Router(); router.get('/',function(req,res){ res.sendFile(path.join(__dirname, '/index.html')); //__dirname : It will resolve to your proje... Add solution -
Python 2021-11-04 00:08:13
how to add an active class to current element in navbar in django
# navbar_demo/pages/views.py... '''We will pass a unique variable for each page whose value will be 'active' to make a page active in navbar when it call.''' def index(request): context = {"home_page": "active"} # new info he... Add solution -
Python 2021-11-02 19:46:23
how to monitor a website traffic python
from flask import Flask, render_template, request, session, jsonify import urllib.request from pusher import Pusher from datetime import datetime import httpagentparser import json import os import hashlib from dbsetup ... Add solution -
Html 2021-09-25 01:58:03
html navigation bar
<!-- How to create a navigation bar: This is the html file: Put the class="active" in the html file/page you are coding in (e.g. put the class="active" in the Home.html file) To position a page link to the right do class="... Add solution