From the course: Secure Coding in Python

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Generating new projects

Generating new projects - Python Tutorial

From the course: Secure Coding in Python

Generating new projects

Application secrets are pieces of information that are application needs that need to be protected and handled with care. Now, these secrets can include secret keys, database passwords, as well as API tokens. Now, secrets should be kept out of source code and consequently they should not be committed to source control. It's also a good practice to routinely replace secrets, but you must replace a secret that's been committed to source control or compromised in any other way. So let's go ahead and see how we can keep secrets out of source code. And for this one, I'm going to open up 03_03_begin, feed, and I have here my settings. py directory, so I'll clear my terminal. So I'm going to navigate to 03_03_begin, and I have here feed. And I'll also go ahead and navigate to 03_03_begin, feed. Clear my terminal. And if I ls, I'll see that there is another directory of feed. So cd feed, and this is how Django projects are often structured, where you have the name of the project. And within…

Contents