Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn Django by building a stock management system - Part 2
Rating: 4.4 out of 5(69 ratings)
4,224 students

Learn Django by building a stock management system - Part 2

Django Framework
Last updated 3/2021
English
English [Auto],

What you'll learn

  • Learn Django web framework
  • Learn web development
  • Develop a functional stock management system

Course content

1 section16 lectures1h 51m total length
  • Introduction1:12

    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.

  • Including Navbar using include keyword6:57

    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.

  • Displaying Data in a Table5:45

    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.

  • Querying Data from the Database6:27

    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.

  • Form Validation6:25

    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.

  • Updating Data in Django8:47

    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.

  • Delete and Confirm Delete6:49

    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.

  • Working with Choice Field in Django2:19

    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.

  • Understanding Django's ForeignKey Field10:10

    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 to CSV6:08

    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.

  • Django Messages and Notification3:21

    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.

  • Working with Datefield10:08

    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.

  • Adding details page5:20

    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.

  • Issuing and Receiving Items10:23

    Update stock levels by issuing and receiving items using forms, linking to details, and saving changes to reflect updated quantities and success notifications.

  • Setting up MySQL Server13:26

    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.

  • Stock Reorder Level8:01

    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.

Requirements

  • Part 1 of this course, titled: Learn Django by building a stock management system - part 1

Description

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:)

Who this course is for:

  • Beginners and intermediary interesting in web devepment