Orange County Lettings uses SQLite as its development database. The database file is stored in the project root and is managed entirely by Django’s ORM. You can also open it directly with theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/OpenClassrooms-Student-Center/Python-OC-Lettings-FR/llms.txt
Use this file to discover all available pages before exploring further.
sqlite3 CLI to inspect tables and run ad-hoc queries.
Database configuration
The database is configured inoc_lettings_site/settings.py:
oc-lettings-site.sqlite3, located in the project root directory.
Apply migrations
Before using the database for the first time, apply Django migrations to create all required tables:0001_initial.py) creates the following tables:
oc_lettings_site_address— postal addresses for lettingsoc_lettings_site_letting— rental property listingsoc_lettings_site_profile— user profile data including favourite city
Explore with the sqlite3 CLI
The SQLite database file is suitable for local development only. Do not use it in production. For production deployments, configure a production-grade database such as PostgreSQL using Django’s
django.db.backends.postgresql backend.