This is a basic Django application for managing a collection of books. The application uses SQLite as the database and includes routes for performing various CRUD (Create, Read, Update, Delete) operations on books.
- View details of individual books
- Add new books
- Update existing books
- Delete books
- Python 3.x
- Django 3.x or later
- SQLite (default with Django)
- Clone the repository:
git clone https://github.com/4TechSadiq/bookApp.git cd book-app - Create Virtual environment and Activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install the required packages:
pip install -r requirements.txt
- Apply migrations:
python manage.py migrate
- Create a superuser to access the Django admin:
python manage.py createsuperuser
- Run the development server:
python manage.py runserver
- Open your web browser and go to http://127.0.0.1:8000 to see the app.
Go to the homepage to see a list of all books. Click on a details to view its details.
Fill the form to add new record.
From the Record Table choose Update to update the record.
From the book detail view, click the "Delete" button to remove the book from the collection.
bookapp/: Contains the main Django project settings and URLs.books/: Contains the book application with models, views, templates, and forms.templates/: Contains HTML templates for the application.db.sqlite3: The SQLite database file.manage.py: The command-line utility for administrative tasks.
If you would like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the GNU GENERAL PUBLIC LICENSE. See the LICENSE file for more information.