https://github.com/dhananjay66/blogsite
A modular Django project with integrated REST API support for managing blog content and user accounts. Built using Django and Django REST Framework, it offers clean architecture and scalable endpoints. Perfect for learning full-stack backend development and API integration.
https://github.com/dhananjay66/blogsite
backend blog-api django django-rest-framework modular python rest-api sqlite
Last synced: 2 months ago
JSON representation
A modular Django project with integrated REST API support for managing blog content and user accounts. Built using Django and Django REST Framework, it offers clean architecture and scalable endpoints. Perfect for learning full-stack backend development and API integration.
- Host: GitHub
- URL: https://github.com/dhananjay66/blogsite
- Owner: Dhananjay66
- Created: 2025-06-04T05:51:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-13T06:15:02.000Z (12 months ago)
- Last Synced: 2025-06-13T07:25:39.414Z (12 months ago)
- Topics: backend, blog-api, django, django-rest-framework, modular, python, rest-api, sqlite
- Language: JavaScript
- Homepage: https://django-blogsite-kopq.onrender.com
- Size: 396 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📝 Django Blog API Project
This is a Django-based Blog project with integrated Django REST Framework (DRF) for API development. It includes user account handling, blog management, and API routing, structured across modular Django apps.
---
## 🚀 Features
- Django-powered backend with modular app structure
- RESTful APIs built using Django REST Framework
- User account and blog post management
- Well-organized project with clean architecture
- Ready for deployment with static file handling
---
## 🗂️ Project Structure
```
blog/
├── accounts/ # Handles user accounts
│ ├── models.py
│ ├── serializers.py
│ ├── views.py, urls.py, etc.
│ └── migrations/
├── api/ # API routing app
│ └── urls.py
├── blog/ # Main project settings
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py, asgi.py
├── home/ # Blog content handling
│ ├── models.py
│ ├── serializers.py
│ ├── views.py, urls.py
│ └── migrations/
├── db.sqlite3 # SQLite database
├── manage.py # Django management script
└── requirements.txt # Python dependencies
````
---
## 🛠️ Installation
1️⃣ **Clone the repository:**
```bash
git clone https://github.com/your-username/blog.git
cd blog
````
2️⃣ **Create and activate virtual environment:**
```bash
python -m venv env
source env/bin/activate # On Windows: env\Scripts\activate
```
3️⃣ **Install dependencies:**
```bash
pip install -r requirements.txt
```
4️⃣ **Apply migrations:**
```bash
python manage.py makemigrations
python manage.py migrate
```
5️⃣ **Run the development server:**
```bash
python manage.py runserver
```
---
## 📦 API Endpoints
Sample API base: `http://localhost:8000/api/`
| Method | Endpoint | Description |
| ------ | -------------- | ---------------------- |
| GET | `/blogs/` | List all blog posts |
| POST | `/blogs/` | Create a new blog post |
| GET | `/blogs//` | Retrieve a single post |
| PUT | `/blogs//` | Update a post |
| DELETE | `/blogs//` | Delete a post |
*(Modify routes as per your `urls.py` setup.)*
---
## 🔧 Tech Stack
* **Python 3.x**
* **Django**
* **Django REST Framework**
* **SQLite** (default DB)
* **Bootstrap or custom CSS (optional)**
---
## ✍️ Author
**Dhananjay Pratap Singh**
Built with ❤️ using Django + DRF