16 lines
352 B
Python
16 lines
352 B
Python
from flask import Flask, render_template, send_from_directory
|
|
import os
|
|
import main
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route('/')
|
|
def hello():
|
|
return render_template('index.html')
|
|
|
|
@app.route('/statics/<string:file_name>')
|
|
def statics(file_name):
|
|
return send_from_directory(os.getcwd()+"/static", file_name)
|
|
|
|
app.run(host="localhost", port=9283) |