How to setup Django to work with Postgres

Mi idea is working with Postgres and allow SQL syntax at the models and don’t know how to make this, please share a practice example.

On the documentation there’s plenty of information, on how to configure, and use.
Django allows you to work with a bunch of databases with no specific coupling with a vendor.

See the docs on: DATABASES setting.
The queryset documentation has examples on how to use raw sql.

1 Like