A comprehensive user based Library Management System built with Django and SQLite3 or PostgreSQL. This project includes functionalities for managing books, authors, categories, publishers, and languages. It also features search functionalities to easily find books based on various criteria.
- User based permission like teacher, student and admin.
- Add, update, and delete books, authors, categories, publishers, and languages.
- Search books by name, author, category, publisher, ISBN
- File upload for book files and download
- Recently added books display on the homepage
- Mobile friendly responsive design.
Coming Soon
- Python 3.6+
- Django 3.2+
- Git
- Install Python
- Install Django
pip install django
- Install Django PhoneNumberField
pip install django-phonenumber-field
- Install Virtual Environment
pip install virtualenv
- Clone the repository
git clone https://github.com/pokharelsugam/u_elibrary-django.git cd elibrary-django
- Create a virtual environment and activate it.
virtualenv env env\scripts\activate pip install django pip install django-phonenumber-field
- Run the migrations
python manage.py makemigrations #may or may not be required python manage.py migrate #must be required
- Create a superuser
python manage.py createsuperuser
- Start the development server
python manage.py runserver
- Navigate to http://127.0.0.1:8000/admin to access the admin interface and manage your library data.
- Login with superuser account.
- Create teacher/student from registration form.
- Use the navigation bar to add and view books, authors, categories, publishers, and languages.
- Use the search functionality to find books based on various criteria.
- Do the following things before migration/creating SQLite3 Database
- PostgreSQL
- Install PostgreSQL in Computer, Download Link : https://www.postgresql.org/download/
- For windows
- Goto 'Edit the system environment variables'→ Environment Variables → System variables → Path → Edit → New → C:\Program Files\PostgreSQL<version>\bin\
- Test installation by command
psql --version
- Install psycopg2. Use following code for that
pip install psycopg2
- Goto pgAdmin 4 app
- Create New Server named as postgre_elibrary-django with
- HOST : localhost
- Password: Created duiring PostgreSQL software
- Goto 'Login/Group Roles()'
- Create 'Login/Group Role'
- General → name → 'username_for_database'
- Defination → password → 'password_for_database'
- Privilages → Can Login → 'Yes'
- Save
- Goto Database()
- Database → Create → 'Database'
- General → Database → 'database_name', Owner → 'username_of_database'
- Save
- Modify Database Setting in 'settings.py' of Django
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'database_name', 'USER': 'username_of_database', 'PASSWORD': 'password_of_database', 'HOST': 'localhost', 'PORT': '5432', } }