Created
November 13, 2020 00:00
-
-
Save wolfiex/14f93c282437614fc30db4c8eeb7ae4d to your computer and use it in GitHub Desktop.
Upload_flask_empty.py
This file contains hidden or 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 sys,os,re | |
from flask import Flask, flash, request, redirect, render_template | |
from werkzeug.utils import secure_filename | |
from config import * | |
app=Flask(__name__) | |
app.secret_key = app_key | |
## on page '/upload' load display the upload file | |
@app.route('/upload') | |
def upload_form(): | |
return render_template('upload.html') | |
############################# | |
# Additional Code Goes Here # | |
############################# | |
if __name__ == "__main__": | |
print('to upload files navigate to http://127.0.0.1:4000/upload') | |
app.run(host='127.0.0.1',port=4000,debug=True,threaded=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment