A Django web application that replicates core Twitter functionality — user authentication, posting tweets, following other users, and a personalized home feed.
- User registration, login, and logout
- Compose and post tweets
- Follow and unfollow other users
- Personalized home feed showing tweets from followed users
- User profile pages
- Notifications
- Django 3.x — web framework
- Python 3.8+
- SQLite (default) — database
- Django Templates — server-side rendering
- Poetry — dependency management
git clone https://github.com/ahasan09/twitter-clone
cd twitter-clone
poetry installpoetry run python manage.py migratepoetry run python manage.py createsuperuserpoetry run python manage.py runserverOpen http://127.0.0.1:8000 in your browser.
If you don't use Poetry:
pip install django
python manage.py migrate
python manage.py runservertwitter-clone/
├── twitterclone/ # Project settings and URL config
├── twitteruser/ # User model, auth, profile
├── tweet/ # Tweet model, views, forms
├── authentication/ # Login/register/logout views
├── notification/ # Notification system
└── manage.py
Access the Django admin at http://127.0.0.1:8000/admin using your superuser credentials.