Build an Inventory Management System with Python and Django: A Step-by-Step Tutorial

preview_player
Показать описание
In this tutorial, we'll walk you through the process of building an inventory management system using Python and Django. We'll cover essential concepts such as Django forms, authorization, and handling quantity alerts using Django messages.

You'll learn how to create Django forms to add new inventory items, update existing items, and delete items from the inventory. We'll explore how to implement Django authorization to control user access and protect sensitive operations. Additionally, we'll show you how to leverage Django messages to display alerts when the quantity of an item falls below a certain threshold.

By the end of this video, you'll have a solid understanding of how to utilize Django's powerful features to build a robust inventory management system. Join us on this coding journey and enhance your Python and Django skills while creating a practical application that can be applied to various industries. Don't miss out on mastering these essential concepts in web development!

Timestamps:
0:00 - Intro
2:11 - Project Setup and Index View
9:20 - Navbar
21:12 - Register, Login, Logout User
47:13 - Updating Navbar Links
50:20 - Finishing Touches to Auth Pages
51:51 - Build Index Pages
55:21 - Setup Dashboard Page
1:08:47 - Display Items in Template
1:20:26 - Require Login for Dashboard
1:23:41 - Create New Item
1:41:18 - Edit Item
1:47:24 - Delete Item
1:54:23 - Quantity Alerts

Code:

Рекомендации по теме
Комментарии
Автор

im in the 62 minute and at this point, this is the best tutorial ive ever seen of a web project. congrats mate

benjaminquiroz
Автор

Can we move this project into cloud and implement as a Cloud Inventory management system ?

parthbarot-ncmr
Автор

Which version of python and Django are you using in this video?

zxster
Автор

why @ 38:20 was password confirmation not entered but signup was successful?

jarrodolivier
Автор

Hello, it doesn't work when I log out. Whenever I go to /logout or when I click logout, the page shows "This page isn’t working." Do you have any ideas on how to fix this?

a.n.t.r
Автор

Did anyone find a fix for the logout issue? Im having the same thing.

kronchybitz
Автор

can you share the requirements.txt too? it's not on github

Mr_aviation_shorts
Автор

40:39 Hey man, thank you for the work you do. It seems like the LogoutView has been depricated. No matter how many times I try visiting to my logout url, I get a HTTP error 405. Can you help me out?

SabinTV-NP
Автор

The fix I found for the logout issue:

In navigation.html after "{{ user.username )) </a></li>" put:

<form action="{% url 'logout' %}" method="post">
{% csrf_token %}
<button class="btn btn-sm">Log Out</button>
</form>

And in settings.py at the bottom under LOGIN_REDIRECT_URL = '/dashboard' put
LOGOUT_REDIRECT_URL = '/login'
This makes it to when you logout it redirects you to the login page instead of a logout page. I can't figure out the issue to make it to where the logout page works appropriately, but this should appropriately log the user out. 

If anyone solves the actual logout page issue please let us know. I went through quite a few steps of troubleshooting and still couldn't get the logout page to load appropriately without a "GET /logout/ HTTP/1.1" 405 0 error.

lydiaahope
Автор

Hello Brother! I want to add two more columns for CostPrice and SellPrice. How can I add them

tehman
Автор

Can we populate the inventory with excel/smartsheet file data?

OfficialAbyMusic
Автор

hi broder, i followed all the tutorial and it works almost completely fine, ive got a problem with the logout. i get this error:Method Not Allowed (GET): /logout/
Method Not Allowed: /logout/
"GET /logout/ HTTP/1.1" 405 0
Do u know wath can be?

benjaminquiroz
Автор

After hitting get started I’m able to get to my login page. I get error page after logging in. I’m not able to get to my dashboard with an account . When I go back to the main page it shows my login id on the top right. I think it’s a thing about the crispy forms but I’m not able to figure out the problem. It’s just the same with the online delivery app. Always get an error page telling me account/profile can’t be found.

Chucklarry
Автор

great. do some advance projects now. or may a part two of it with more features.

sidds
Автор

Hello, it doesn't work when I log out. Whenever I go to /logout or when I click logout, the page shows "This page isn’t working." Do you have any ideas on how to fix this?

BunnyBani-dotd