Database and Media Files Setup
Understand how to set up and configure PostgreSQL as your Django database, manage static files like CSS and JavaScript, and handle user-uploaded media files. This lesson helps you configure crucial settings in your Django project for both development and production environments.
We'll cover the following...
We'll cover the following...
SQLite 3 database setup
The default database used by Django is the SQLite3 database. The following piece of code is generated whenever we set up a new Django web app.
SQLite
PostgreSQL database setup
In this course, we’ll be using the PostgreSQL database. To use the PostgreSQL database, we need to modify the DATABASES field in the settings.py as follows:
PostgreSQL
ENGINE
Refers to the database component used to perform CRUD (Create, Read, Update, Delete) operations on the database data.
NAME
Refers to the name of the database.
...