markdown 📝 Django Mini Blog
A beginner-friendly Django blog app built while learning Django step by step.
Features include:
- User authentication (register/login/logout)
- Create, Read, Update, Delete (CRUD) posts
- Bootstrap styling
- Pagination
- Django admin for post management
🚀 Getting Started
git clone https://github.com/YOUR-USERNAME/django-blog.git
cd django-blogpython -m venv venv
# activate venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activatepip install -r requirements.txt(Optional: you can create requirements.txt with pip freeze > requirements.txt)
python manage.py migratepython manage.py createsuperuserpython manage.py runserverNow open your browser at: http://127.0.0.1:8000/ 🎉
mysite/
│── manage.py
│── db.sqlite3
│── requirements.txt
│── blog/ # blog app
│ ├── models.py
│ ├── views.py
│ ├── urls.py
│ └── templates/blog/
│
├── templates/ # base templates
├── static/ # static files (css, js, images)
└── media/ # user-uploaded files
- Add comments feature
- Add tags or categories
- Deploy to Heroku/Railway
MIT License
- In VS Code, create a file named
README.mdin your project root. - Paste the above content (edit
YOUR-USERNAME/django-blog.gitto your actual GitHub repo link). - Save, then push it to GitHub:
git add README.md git commit -m "Add README file" git push