A guide to setting up Django with PostgreSQL 15

Hello everyone,

I had a hell of a time last night setting up the brand new PostgreSQL 15 with Django. Some change made for security reasons in PG has made many tutorials and forum discussions obsolete and troubleshooting them has been… instructive.

To save you some trouble, I have put together a tutorial based on my findings. I hope it can be of help to somebody!

Any feedback is welcome,
Cheers

2 Likes

Hello @axelbdt,

Thank you for the hard work, I was wondering, for a future production system, is it OK to go with a docker container and then build from there maybe a Debian OS + Postgres + Django in order to set up the backend?

I am planning to build a simple front-end based on bootstrap + backend Django + python + database e.g. Postgres, and I am not sure if the components listed here will be enough to accomplish the project.

The final project should be a simple system with a UI web application that can interact with a database and basically track projects perusers, have the option to query as many details via the UI, have an output about the status or progress of each user, and each project they own, some sort of dashboard, with a list of defined steps, and if one of the steps needs to be skipped, have options for special permission, with comments of why I want to start very basic and then later add more functionality.

Any comments or suggestions are much welcome.

Thank you,

I see where this is the second thread that you’ve commented on with this same request for information, suggestions, or ideas. Please don’t do that. (See FAQ - Django Forum)

Rather than tagging this on to multiple different topics, you may gain more traction by opening a new thread for this and see where it goes.

@KenWhitesell,

Sounds good, thank you for the suggestions, and apologies for the inconvenience.

Sincerely,