This Django-based library management system allows users to register, log in, borrow and return books, view their transaction history, and update their profile information.
- User Registration and Authentication
- Book Borrowing and Returning
- Transaction Tracking
- User Profile Management
- Email Notifications for Transactions and Book Events
- Django
- Python
- HTML/CSS
- Bootstrap
- SQLite (or your preferred database)
-
Clone the repository:
git clone https://github.com/Nirob-Barman/library-management-system.git
-
Create a virtual environment and install dependencies:
cd library-management-system python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` pip install -r requirements.txt
-
Apply database migrations:
python manage.py migrate
-
Create a superuser account for admin access:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Visit http://localhost:8000/admin/ to log in with the superuser account.
- Access the application at http://localhost:8000/.
- Register a new user account or log in.
- Borrow and return books, view transaction history, and update your profile.
Ensure that your email settings are configured in the settings.py
file for email notifications to work.
# settings.py
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'your-smtp-server.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'your-email-password'