tubeshowcase●1,157,887 videos♡ My collection 0
← Learn to Code

Learn to Code12:56

Protected directories and Files - Flask Web Development with Python 31

sentdex ↗

From the creator

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/

Published 2015-12-07 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code