Community Questions

Join the discussion, find answers, and help others.

Ask Question
8 votes
1
answers
629 views

How to read and write JSON files in Python

What is the best way to read JSON data from a file and write JSON to a file in Python?

D
devops_guru asked 4 weeks, 1 day ago
21 votes
1
answers
99 views

How to change hostname on Linux

I need to change my server hostname. What is the correct way to do this on modern Linux systems?

D
db_admin asked 4 weeks, 1 day ago
15 votes
1
answers
1416 views

How to compress and extract tar.gz files on Linux

How do I create and extract .tar.gz archives on Linux from the command line?

O
omar_linux asked 4 weeks, 1 day ago
16 votes
1
answers
1461 views

How to fix "too many open files" error on Linux

My application crashes with "too many open files" error. How can I increase the file descriptor limit?

W
web_developer asked 4 weeks, 1 day ago
0 votes
1
answers
662 views

How to set up UFW firewall on Ubuntu

I want to secure my Ubuntu server with a firewall. How do I configure UFW to allow only SSH and HTTP/HTTPS?

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

How to schedule tasks with cron on Linux

I need to run a backup script every night at 2 AM. How do I set up a cron job?

H
hassan_ops asked 4 weeks, 1 day ago
8 votes
1
answers
1553 views

How to monitor system resources in real-time on Linux

What are the best tools to monitor CPU, memory, and disk usage in real-time on a Linux server?

C
cloud_arch asked 4 weeks, 1 day ago
36 votes
1
answers
780 views

How to add swap space on Linux

My server is running out of memory. How can I add swap space without reinstalling the system?

F
fatima_dev asked 4 weeks, 1 day ago
17 votes
1
answers
867 views

How to set up automatic security updates on Ubuntu

I want my Ubuntu server to automatically install security updates. How do I configure unattended-upgrades?

O
omar_linux asked 4 weeks, 1 day ago
7 votes
1
answers
1233 views

How to check disk usage and find large files on Linux

My server disk is getting full. How can I find which files and directories are taking up the most space?

W
web_developer asked 4 weeks, 1 day ago
14 votes
1
answers
1565 views

How to find and kill a process using a specific port

I need to free up port 8000 but something is already using it. How can I find what process is using it and kill it?

Y
youssef_net asked 4 weeks, 1 day ago
39 votes
1
answers
1747 views

CORS errors in Django REST API - complete fix

I'm getting CORS errors when my frontend tries to access my Django REST API. "Access-Control-Allow-Origin" header is missing.

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
1 votes
1
answers
791 views

502 Bad Gateway with Nginx and Gunicorn - how to fix

I'm getting 502 Bad Gateway error when accessing my Django site through Nginx. Gunicorn seems to be running. How do I fix this?

W
web_developer 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
9 votes
1
answers
642 views

pip install failing with SSL certificate error

When I try pip install, I get SSL: CERTIFICATE_VERIFY_FAILED error. How can I fix this?

F
fatima_dev asked 4 weeks, 1 day ago
44 votes
1
answers
1634 views

How to handle Unicode encoding errors in Python

I'm getting UnicodeDecodeError when reading files or processing text. How do I properly handle encoding in Python?

O
omar_linux asked 4 weeks, 1 day ago
12 votes
1
answers
378 views

Python virtual environment not activating - solutions

When I try to activate my virtual environment with "source venv/bin/activate", nothing happens. No error, but the prompt doesn't change.

O
omar_linux asked 4 weeks, 1 day ago
45 votes
1
answers
1886 views

How to fix ModuleNotFoundError: No module named in Python

I installed a package with pip but Python says "ModuleNotFoundError: No module named". I've tried reinstalling but it still doesn't work.

P
python_dev asked 4 weeks, 1 day ago
Previous Page 4 of 5 Next