-
pip install virtual env
-
virtualenv env
-
env/Scripts/activate
-
pip install -r requirements.txt
-
FLASK_APP = app.py
-
flask --debug run
- assets
- css
- fonts
- images
- js
- webfonts
ML- machine learning files and algorithms
- General Syntax
{{ url_for(FOLDER NAME, filename=PATH) }}
EXAMPLE:-
{{ url_for('static', filename='/css/all.css') }}
@app.route(PATH, methods=['POST', 'GET'])
def FUNCTION_NAME():
return render_template(HTML FILE)
example:-
@app.route('/home')
def index():
return render_template('index.html')