Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.16 KB

README.md

File metadata and controls

33 lines (19 loc) · 1.16 KB

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