This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
{% block javascripts %} {% endblock %} | |
<title> | |
{% block title %}{% endblock %} | |
</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "layout.html" %} | |
{% block title %} | |
Hello ! | |
{% endblock %} | |
{% block head %} | |
{% endblock %} | |
{% block body %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route("/") | |
def index(): | |
return render_template("index.html") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import random, json, time, datetime | |
from flask import Flask, session, render_template, url_for, request, redirect, jsonify, Response | |
from flask_session import Session | |
from flask_socketio import SocketIO, emit, join_room, leave_room | |
import random, json, time, datetime | |
app = Flask(__name__) |
NewerOlder