Community Questions

Join the discussion, find answers, and help others.

Ask Question
45 votes
1
answers
1198 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 1 month, 3 weeks ago
11 votes
1
answers
1413 views

How to backup and restore PostgreSQL database

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

L
linux_expert asked 1 month, 3 weeks ago
2 votes
1
answers
1590 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 1 month, 3 weeks ago
27 votes
1
answers
1639 views

How to create Django model relationships

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

P
python_dev asked 1 month, 3 weeks ago
22 votes
1
answers
127 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 1 month, 3 weeks ago
43 votes
1
answers
1573 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 1 month, 3 weeks ago
40 votes
1
answers
1698 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 1 month, 3 weeks ago