Ahmed Hassan
@ahmed_tech
About
Software engineer with expertise in backend systems
Q&A Statistics
Recent Questions
How to add search functionality to Django
How to serve Django static files in production
How to create PostgreSQL database and user
Recent Answers
View all →Re: How to implement Django user registration
# forms.py from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class SignUpForm(UserCreationForm): email = forms.EmailField(required=True) class Meta: model = User …
Re: How to use rsync for backups
# Basic sync rsync -avz /source/ /destination/ # Sync to remote server rsync -avz -e ssh /local/ user@remote:/path/ # Important …
Re: How to change timezone on Linux
# Check current timezone timedatectl # List timezones timedatectl list-timezones # Set timezone sudo timedatectl set-timezone Asia/Riyadh # or sudo …
Re: How to iterate over dictionary in Python
# Iterate over keys for key in my_dict: print(key) # Iterate over values for value in my_dict.values(): print(value) # Iterate …
Re: How to mount and unmount drives on Linux
# List available drives lsblk fdisk -l # Create mount point sudo mkdir /mnt/mydrive # Mount drive sudo mount /dev/sdb1 …
Recent Articles
Monitoring Linux Servers with Prometheus
Setting Up Nginx as Load Balancer
Complete Guide to Linux System Logs
Building Production-Ready Django Applications
Python Debugging Techniques and Tools
Docker Basics for Python Developers
Open Source Projects
No projects yet.