Content Management System

This is a Django-based Content Management System (CMS) project that allows users to create, view, update, and delete content items along with feature to add multiple categories in content item.

Table of Content

  • Installation
  • Usage
  • Test Coverage

Installation

  1. Clone the repository:
  git clone https://github.com/althafMuhammedUmer/ContentManagementSystem.git
  cd ContentManagementSystem
  1. Create a virtual environment and activate it:
python3 -m venv venv
source venv/bin/activate
  1. Install project dependencies:
pip install -r requirements.txt
  1. Create the database and apply migrations:
python manage.py migrate
  1. Create a superuser for admin access:
python manage.py createsuperuser

Usage/Examples

  1. Start the development server:
python manage.py runserver
  1. Access the admin panel by visiting http://localhost:8000/admin/ and logging in with the superuser credentials.

  2. Explore the API endpoints to manage content items:

Running Tests

This project includes unit tests to ensure its functionality. You can generate test coverage reports by running the following command:

  coverage run --source='.' manage.py test

To see the test report:

coverage report