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



Category:
Tutorial
Duration: 12:56
11,907 views
96


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


2015-12-27Color Filtering - OpenCV with Python for Image and Video Analysis 7
2015-12-22Thresholding - OpenCV with Python for Image and Video Analysis 6
2015-12-20Image arithmetics and Logic - OpenCV with Python for Image and Video Analysis 5
2015-12-19Image Operations - OpenCV with Python for Image and Video Analysis 4
2015-12-18Drawing and Writing on Image - OpenCV with Python for Image and Video Analysis 3
2015-12-17Loading Video Source - OpenCV with Python for Image and Video Analysis 2
2015-12-16Intro and loading Images - OpenCV with Python for Image and Video Analysis 1
2015-12-13Integrating Paypal with Flask - Flask Web Development with Python 34
2015-12-11Pygal SVG embedded Graphs - Flask Web Development with Python 33
2015-12-08jQuery with Flask - Flask Web Development with Python 32
2015-12-06Protected directories and Files - Flask Web Development with Python 31
2015-11-30Return Files with send_file - Flask Web Development with Python 30
2015-11-27Flask Mail - Flask Web Development with Python 29
2015-11-23URL Converters - Flask Web Development with Python 28
2015-11-18Jinja Templating Cont'd - Flask Web Development with Python 27
2015-11-16Includes - Flask Web Development with Python 26
2015-11-08Scikit Learn Incorporation - p.16 Data Analysis with Python and Pandas Tutorial
2015-11-03Rolling Apply and Mapping Functions - p.15 Data Analysis with Python and Pandas Tutorial
2015-10-29Adding other economic indicators - p.14 Data Analysis with Python and Pandas Tutorial
2015-10-27Joining 30 year mortgage rate - p.13 Data Analysis with Python and Pandas Tutorial
2015-10-21Applying Comparison Operators to DataFrame - p.12 Data Analysis with Python and Pandas Tutorial



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