A Django-based web application for managing library books and authors, including borrowing and returning functionality.
- Add, view, edit, and delete Authors
- Add, view, edit, and delete Books
- Each Book is linked to an Author
- Search books by title or author name (bonus feature)
- Borrow and Return functionality that updates copy availability in real time
- Availability status (Available / Not Available) shown automatically based on copies available
- Django Admin panel for quick data management
- Responsive UI styled with Bootstrap
- Python 3.10+
- pip
-
Clone or download this repository, then navigate into the project folder:
cd Library_Mgmt_sys -
Create and activate a virtual environment:
python -m venv .venv .venv\Scripts\activate # Windows source .venv/bin/activate # Mac/Linux
-
Install dependencies:
pip install -r requirements.txt
-
Apply database migrations:
python manage.py makemigrations python manage.py migrate
-
(Optional) Create an admin account to access the Django admin panel:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Open your browser and visit: http://127.0.0.1:8000/
Library_Mgmt_sys/
├── library/ # Main app (models, views, admin, urls)
├── Library_Mgmt_System/ # Project settings
├── templates/ # HTML templates
├── Screenshots/ # App screenshots for README
├── requirements.txt
└── manage.py
Author
name,bio,date_of_birth
Book
title,author(linked to Author),isbn,published_date,copies_total,copies_availableis_availableis automatically calculated based on whethercopies_available > 0
Searching Books On the book list page, use the search bar to find books by title or author name. The search is case-insensitive and matches partial text.
| Home Page | ![]() |
| Book List | ![]() |
| Book Detail | ![]() |
| Add Book | ![]() |
| Author List | ![]() |
| Author Detail | ![]() |
| Author Edit | ![]() |
| Delete Author | ![]() |







