Questions & Answers
19
votes
1
answers
399
views
How to set environment variables permanently
How do I set environment variables that persist after reboot?
49
votes
1
answers
1232
views
How to view and manage running processes
How do I see what processes are running and manage them?
47
votes
1
answers
1240
views
How to find files by name on Linux
I need to search for files by name. What commands can I use?
43
votes
1
answers
1300
views
How to copy files between servers using SCP
I need to transfer files from one server to another. How do I use scp?
27
votes
1
answers
232
views
How to check open ports on Linux
How can I see which ports are open and listening on my server?
8
votes
1
answers
1104
views
How to create a new user on Linux
I need to add a new user with sudo privileges. What are the steps?
32
votes
1
answers
1415
views
How to check Linux kernel version
What command shows the Linux kernel version? I need to verify it for compatibility.
35
votes
1
answers
394
views
How to create REST API with Django REST Framework
I want to build a REST API for my Django models. How do I use Django REST Framework?
41
votes
1
answers
1534
views
How to implement user authentication in Django
I need to add login, logout, and registration functionality to my Django app. What is the best approach?
23
votes
1
answers
1257
views
How to send emails in Django
I need to send email notifications from my Django app. How do I configure and send emails?
36
votes
1
answers
848
views
How to add pagination to Django views
I have a list view with hundreds of items. How do I add pagination to show only 10 items per page?
12
votes
1
answers
824
views
How to create custom Django management commands
I need to create a custom command that I can run with manage.py. How do I create one?
36
votes
1
answers
1565
views
How to work with environment variables in Python
How do I read environment variables in Python and set default values if they do not exist?
38
votes
1
answers
1232
views
How to use context managers (with statement) in Python
I see "with" statements used in Python. What are context managers and how do I create my own?
14
votes
1
answers
951
views
How to work with datetime in Python
Working with dates and times in Python is confusing. How do I parse, format, and manipulate dates?
26
votes
1
answers
1308
views
How to use list comprehensions in Python
I keep seeing list comprehensions in Python code. Can you explain how to use them effectively?
8
votes
1
answers
610
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?