Project configuration
All projects need configuring in some way to work with all of the packages and hosts that are involved. We will take the project that we just created and configure files such as settings.py
, .env
, procfile
, and .gitignore
. Take the settings.py
file—this file or files will store all of the global constants that are used throughout the code of your project. When packages are used, they usually provide a way to customize the behavior of that package from within the main settings file. Other files, such as .env
and procfile
, will be used to prevent deployment issues when working with Heroku as the host. Currently, we would not be able to deploy successfully to the Heroku environment as we have created the project files. Work through the following configuration sections before attempting a successful deployment.
Django settings.py file
In the settings.py
file that was automatically generated for us when we created a project, we need to add settings specific...