Help Center

FAQ: Databases and models

How can I see the raw SQL queries Django is running?

Can I use Django with a pre-existing database?

Yes. See Integrating with a legacy database.

If I make changes to a model, how do I update the database?

Do Django models support multiple-column primary keys?

Does Django support NoSQL databases?

How do I add database-specific options to my CREATE TABLE statements, such as specifying MyISAM as the table type?

Last updated: Jul 27, 2018