Community Questions

Join the discussion, find answers, and help others.

Ask Question
45 votes
1
answers
1162 views

How to work with SQLite in Python

I need a simple database for my Python project. How do I use SQLite?

L
layla_web asked 4 weeks, 1 day ago
11 votes
1
answers
1379 views

How to backup and restore PostgreSQL database

What is the command to backup and restore a PostgreSQL database?

L
linux_expert asked 4 weeks, 1 day ago
2 votes
1
answers
1555 views

How to create PostgreSQL database and user

I need to set up a new PostgreSQL database for my Django project.

A
ahmed_tech asked 4 weeks, 1 day ago
27 votes
1
answers
1608 views

How to create Django model relationships

How do I create ForeignKey, OneToOne, and ManyToMany relationships?

P
python_dev asked 4 weeks, 1 day ago
22 votes
1
answers
96 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?

O
omar_linux asked 4 weeks, 1 day ago
43 votes
1
answers
1540 views

PostgreSQL connection refused in Django - solutions

My Django app cannot connect to PostgreSQL. I get "connection refused" error. PostgreSQL is installed and running.

F
fatima_dev asked 4 weeks, 1 day ago
40 votes
1
answers
1661 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?

P
python_dev asked 4 weeks, 1 day ago