
Develop a full stock management system in Django that tracks items, categories, quantities, and creation dates, following part one with new development steps for part two.
Learn to share the navigation bar across pages by extracting it into an include file and inserting it with Django's include tag, enabling single updates across the site.
Show items in a table with header count, category, item name, and quantity, using centered text, alternating row colors, and a shadow in a container with class display table.
Create a two-field stock form for category and item name, integrate it into views and templates, and implement a search filter to query matching stock items.
Learn how to validate user input in a Django stock management app by enforcing required fields, preventing duplicates, and applying custom form validation to ensure data reliability.
Learn how to update inventory data in Django by creating update forms, handling update views, and linking list items to dynamic edit pages, ensuring safe redirects and form reuse.
Create a delete view and a confirmation template that posts to delete an item and redirects to the list, replacing the delete text with a yes icon from static files.
Convert the category field from text to a Django choice field, create a drop-down list from categories, add electronics, and enter items with quantities to manage stock.
Learn how to convert a category field to a Django foreign key linked to a category table, enable adding categories from the front end, and migrate existing data safely.
Export inventory data to a CSV file from a Django stock management app by adding a form checkbox and writing category, item name, and quantity to the CSV.
Learn to implement Django messages to notify users after adding or deleting items in a stock management app, displaying success messages in templates and updating views accordingly.
Learn how to implement timestamps in django stock management by auto populating created and updated fields, configuring auto_now and auto_now_add, and enabling user-specified dates via date fields.
Learn to build a stock details page in a Django stock management system, with a detail template showing item name, quantity, category, last updated, and actions to issue or receive.
Update stock levels by issuing and receiving items using forms, linking to details, and saving changes to reflect updated quantities and success notifications.
Configure Django to use a MySQL database by installing MySQL server and workbench, creating a user and database, updating settings, and migrating to build stock and category tables.
Set up item-specific reorder levels and alerts when stock falls to the threshold, highlight low quantities, and create a form to update and test reorder levels.
This is part 2 of 3 of the course "learn Django by building a stock management system course" where we started building a complete stock management system.
I highly recommend you go through part 1 before starting this course where we start building the application. This course is a continuation of Part 1:
This course covers the following topics:
Django Include keyword, where we use one navbar template for multiple body templates. This allows us to modify a link once and will be modified throughout the application.
How to Display Data in an HTML Table, formatting and coloring the table.
Implementing search in our Django application to query data from the Database.
Form validation to prevent duplicate data into our application
Updating Data in Django
Implementing how to delete and confirm delete
Implementing ChoiceFileds in Django
Working with ForeignKeyField and setting them up as a dropdown list
Exporting Data to a CSV file
Django Messages and Notifications to give feedback to the user of the application about their operations
Working with Django DateFields and updating the Database models
Adding details page to see more information of the data saved in the Database
Doing calculations in Django. This is where we cover issuing and receiving stock items
Configuring our application to connect to a MySQL Database
and Finally Stock reorder level alert. This is where users of the application are alerted when the stock reaches a level set by the user.
After going through this course, you are now ready for Part 3.
Happy Coding:)