1
0
mirror of https://github.com/LukePeters/flask-file-uploads.git synced 2026-05-06 02:11:06 +09:00
2022-04-15 11:42:34 -04:00
2021-12-22 16:33:46 -05:00
2021-12-22 16:33:46 -05:00
2021-12-22 16:52:51 -05:00
2021-12-22 16:33:46 -05:00
2021-12-22 16:33:46 -05:00

Uploading Files with Flask

This repository contains the Flask app starter files for this tutorial on YouTube: https://youtu.be/GQLRVhXnZkE

Stylesheet

You can find the CSS file in the static/ directory or just click here: https://raw.githubusercontent.com/LukePeters/flask-file-uploads/main/static/styles.css

Completed Code

You can find code for the completed tutorial in the completed-tutorial branch here: https://github.com/LukePeters/flask-file-uploads/tree/completed-tutorial

How to Run the App Locally

Using Pipenv

  1. Modify the Pipfile to specify your version of Python 3
  2. Install Flask: pipenv install
  3. Activate the virtual environment: pipenv shell

Using virtualenv and pip

  1. Create the virtual environment: virtualenv -p python3 env
  2. Activate the virtual environment: source env/bin/activate
  3. Install Flask: pip install Flask

Start Flask

Enter these two commands in your terminal:

export FLASK_APP=app

flask run

Description
This repository contains the Flask app starter files for this tutorial on YouTube: https://youtu.be/GQLRVhXnZkE
Readme 2.9 MiB
Languages
CSS 77.5%
HTML 18%
Python 4.5%