Questions & Answers
45
votes
1
answers
1854
views
How to add HTTPS to Django with Nginx
I need to enable HTTPS for my Django site. How do I configure SSL?
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?
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.
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?
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?
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?
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?
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?
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?
6
votes
1
answers
721
views
How to download files in Python
What is the correct way to download files from URLs in Python?
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?
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?
47
votes
1
answers
1253
views
How to change timezone on Linux
My server shows wrong time. How do I change the timezone?
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?