InventoryMate is a Django application designed for inventory management. It allows users to add, modify, and delete product records while providing key insights such as profit margins and the last update timestamp.
- Product Management: Add, edit, and delete products.
- Data Insights:
- Profit margin calculation (sale price vs. last purchase cost).
- Timestamp of the latest modification.
- User-Friendly Interface: A custom HTML interface designed for simplicity, without relying solely on Django's admin panel.
- Dynamic Database: Automatically updates and stores data with every operation.
The configuration process involves several key steps:
-
Creating the Application: The app, named
product
, is included in theINSTALLED_APPS
list in the main project settings. -
URL Routing: Three main routes were created:
- A route to display the full inventory.
- A route to show a product entry form.
- A route for product search and modification.
- Database Model: A model was designed to structure product data in the database, including fields like name, quantity, sale price, supplier name, last purchase cost, profit margin, and last update timestamp. Add a screenshot of the model schema here.
- View Functions: Each feature has a dedicated view to handle database interactions and render HTML templates. For example, here’s the view for displaying the complete inventory:
- Base Template for Reusability:
A
base.html
template was created for consistent styling across the application, extended in all other templates.
- Clone this repository.
- Install the required dependencies:
pip install -r requirements.txt
- Run database migrations:
python manage.py migrate
- Start the development server:
python manage.py runserver
- Access the application at
http://127.0.0.1:8000/
.
Feedback is welcome! Fork this repository, make improvements, and submit a pull request. Let’s enhance InventoryMate together.