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

The production database

So far, we have been using SQLite as our database engine. It is simple and does not require a resident server in memory. SQLite will perform fine in the production mode for small websites. However, it is highly recommended that you switch to a database engine that uses the client-server model in production. As we saw in an earlier chapter, Django supports several database engines, including all the popular ones. The Django team recommends you to use PostgreSQL, but MySQL should be fine as well. Regardless of your choice, you only have to change the database options in the settings.py file to switch to a different database engine.

If you want to use MySQL, create a database, username, and password for Django. Then, change ...

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