A secure, scalable, and responsive blogging platform with role-based user management
- ✅ Create and manage blog posts
- ✅ Login & Logout system using Django Authentication
- ✅ Role-based access control (
Superuser,Admin,Moderator,User) - ✅ Add/Edit/Delete comments with permission control
- ✅ Responsive UI using Bootstrap
- ✅ Secure access via
@login_requiredand@permission_requireddecorators - ✅ Admin panel for full backend management
| Role | Description |
|---|---|
| Superuser | Full control. Can manage Admins, Moderators, Users, and all blog content. |
| Admin | Access granted by Superuser. Can manage Moderators and moderate content. |
| Moderator | Granted by Admin/Superuser. Can view/add comments via admin panel if permitted. |
| User | Default role. Can view blogs and post comments (if allowed). |
🔒 Note: Moderators cannot add comments directly from the UI unless explicitly given permission through the admin panel.
- Clone the Repository
- Create a Virtual Environment
- Install Dependencies
- Apply Migrations
- Create a Superuser
- Run the Server
git clone https://github.com/yourusername/blog.git
cd blog/blogpython -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activatepip install -r requirements.txtpython manage.py makemigrations
python manage.py migratepython manage.py createsuperuserpython manage.py runserver🔗 Visit: http://127.0.0.1:8000
screenshots
📧 Email: shubhrai598@gmail.com
💻 GitHub: github.com/shubh-gitpush



