Skip to content

shubh-gitpush/bloggingweb

Repository files navigation

📰 Django Role-Based Blogging Website

A secure, scalable, and responsive blogging platform with role-based user management


🚀 Features

  • ✅ 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_required and @permission_required decorators
  • ✅ Admin panel for full backend management

🔐 Role-Based Access System

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.


🛠 How to Run the Project

📦 Backend (Django)

  1. Clone the Repository
  2. git clone https://github.com/yourusername/blog.git
    cd blog/blog
  3. Create a Virtual Environment
  4. python -m venv venv
    source venv/bin/activate     # Windows: venv\Scripts\activate
  5. Install Dependencies
  6. pip install -r requirements.txt
  7. Apply Migrations
  8. python manage.py makemigrations
    python manage.py migrate
  9. Create a Superuser
  10. python manage.py createsuperuser
  11. Run the Server
  12. python manage.py runserver

    🔗 Visit: http://127.0.0.1:8000

screenshots

📬 Contact

📧 Email: shubhrai598@gmail.com
💻 GitHub: github.com/shubh-gitpush

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors