From the course: Secure Coding in Python (2020)
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Generating new projects - Python Tutorial
From the course: Secure Coding in Python (2020)
Generating new projects
- [Instructor] Application secrets are pieces of sensitive information that have to be handled with special care. Such information include secret keys, database passwords and tokens. Secrets should be kept out of source code and source control. And must be replaced if there's even a suspicion that they have been compromised. Let's look at a basic way to keep a secret out of our application. So I'm going to head over to my exercise file to 03, 03_03_begin, feed, feed, settings.py And over at line 23 you'll see the secret key. Which as the name implies is a secret. So the first thing I'll do is cut it. I'll head over to my terminal. And here I am again at 03, 03_03_begin. And I'm going to create a file with one command. So echo. And I'm going to paste this secret key. And then type in greater than. Secret_key.txt. By the way this is straight out of the Django documentation and that I highly encourage you check…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.