Questions & Answers

45
votes
1
answers
1855
views

How to add HTTPS to Django with Nginx

I need to enable HTTPS for my Django site. How do I configure SSL?
devops_guru Gold asked 1 week, 2 days ago
31
votes
1
answers
1803
views

How to implement Django file uploads

I need users to upload files. How do I handle file uploads in Django?
web_developer Platinum asked 1 week, 2 days ago
34
votes
1
answers
72
views

How to add search functionality to Django

I want to add a search feature to find articles by title or content.
ahmed_tech Platinum asked 1 week, 2 days ago
47
votes
1
answers
844
views

How to implement Django user registration

I need to add user registration to my Django site. What is the best approach?
fatima_dev Silver asked 1 week, 2 days ago
6
votes
1
answers
913
views

How to serve Django static files in production

My static files work in development but not in production. How do I fix this?
ahmed_tech Platinum asked 1 week, 2 days ago
39
votes
1
answers
1504
views

How to handle keyboard interrupts in Python

My script should clean up when user presses Ctrl+C. How do I handle this?
cloud_arch Platinum asked 1 week, 2 days ago
47
votes
1
answers
981
views

How to use Python multiprocessing for parallel tasks

My script is CPU-bound and slow. How can I use multiple cores?
youssef_net Platinum asked 1 week, 2 days ago
37
votes
1
answers
242
views

How to send emails in Python

I need to send automated emails from my Python script. How do I do this?
db_admin Silver asked 1 week, 2 days ago
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
14
votes
1
answers
362
views

How to create and use Python decorators

I see @decorator syntax in Python. How do I create my own decorator?
noor_code Gold asked 1 week, 2 days ago
6
votes
1
answers
721
views

How to download files in Python

What is the correct way to download files from URLs in Python?
web_developer Platinum asked 1 week, 2 days ago
13
votes
1
answers
795
views

How to parse XML in Python

I need to read and parse XML files in Python. What is the best approach?
layla_web Bronze asked 1 week, 2 days ago
23
votes
1
answers
211
views

How to use Python logging module properly

I want to replace print statements with proper logging. How do I set it up?
fatima_dev Silver asked 1 week, 2 days ago
14
votes
1
answers
97
views

How to search text in files using grep

I need to find files containing specific text. How do I use grep effectively?
sysadmin Silver asked 1 week, 2 days ago
47
votes
1
answers
1572
views

How to manage services with systemd

I need to manage services like starting, stopping, and enabling at boot. How?
layla_web Bronze asked 1 week, 2 days ago
43
votes
1
answers
797
views

How to use rsync for backups

I need to synchronize files between servers. How do I use rsync effectively?
layla_web Bronze asked 1 week, 2 days ago
16
votes
1
answers
1186
views

How to secure SSH with fail2ban

My server is getting too many failed SSH login attempts. How can I block them?
noor_code Gold asked 1 week, 2 days ago
36
votes
1
answers
356
views

How to create shell script with arguments

How do I write a bash script that accepts command line arguments?
omar_linux Platinum asked 1 week, 2 days ago
47
votes
1
answers
1253
views

How to change timezone on Linux

My server shows wrong time. How do I change the timezone?
db_admin Silver asked 1 week, 2 days ago
10
votes
1
answers
249
views

How to monitor network traffic on Linux

I want to see what network traffic is happening on my server. What tools can I use?
db_admin Silver asked 1 week, 2 days ago