Protected directories and Files - Flask Web Development with Python 31
Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=t5Midcpq-m8
In this Flask web development tutorial, we're going to cover how to protect files in a protected directory that you want some people to be able to access, but not everyone.
To start, we need some sort of super secret file. I will just use a Python logo. Use whatever you like. Next, we need to add an instance path to our application. By default, the only place that Flask will look for files within your app will be the static directory. We could put the file in there, but the static directory is completely public, so that won't work, we need to create a new one.
Sample code and text-based tutorial: https://pythonprogramming.net/flask-protected-files-tutorial/
Other Videos By sentdex
Tags:
Python (Programming Language)
Flask (Software)
send_from_directory
protect
paywall
website
create
develop
dev
tutorial
how-to
django
web2py
app
webapp
web app
framework
paradigm