Questions & Answers

45
votes
1
answers
1144
views

How to work with SQLite in Python

I need a simple database for my Python project. How do I use SQLite?
layla_web Bronze asked 1 week, 2 days ago
11
votes
1
answers
1357
views

How to backup and restore PostgreSQL database

What is the command to backup and restore a PostgreSQL database?
linux_expert Bronze asked 1 week, 2 days ago
2
votes
1
answers
1536
views

How to create PostgreSQL database and user

I need to set up a new PostgreSQL database for my Django project.
ahmed_tech Platinum asked 1 week, 2 days ago
27
votes
1
answers
1588
views

How to create Django model relationships

How do I create ForeignKey, OneToOne, and ManyToMany relationships?
python_dev Platinum asked 1 week, 2 days ago
22
votes
1
answers
73
views

How to optimize Django ORM queries for better performance

My Django application is slow. Database queries are taking forever. How can I optimize my ORM queries?
omar_linux Platinum asked 1 week, 2 days ago
43
votes
1
answers
1517
views

PostgreSQL connection refused in Django - solutions

My Django app cannot connect to PostgreSQL. I get "connection refused" error. PostgreSQL is installed and running.
fatima_dev Silver asked 1 week, 2 days ago
40
votes
1
answers
1638
views

Django migrations not applying - troubleshooting guide

I made changes to my models but migrations are not being applied. makemigrations shows "No changes detected". What's wrong?
python_dev Platinum asked 1 week, 2 days ago