O'Reilly logo

Learning Django Web Development by Ratan Kumar, Sanjeev Jaiswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Changing configuration variables

There are many configuration variables that need to be created or updated for production. The production environment is a very hostile environment. The following is the checklist that you should go through for deployment. Check the setting.py file properly, as each setting must be defined in the right way to keep the project secure.

Settings can be environment-specific, such as when you run the settings locally. The database credentials might change and even the database can change according to the environment. While conducting the process of deployment, enable the optional security features.

Enable performance optimizations. The first step to do so is to disable debug, which enhances the performance of the website. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required