hello, who can help. I dont understand two things. slug, instance and commit who can help what its mean in django? thankyou
Slug is just a readable URL representation of an instance. It is used in case if you don't want to identify an object by its primary key. For example, instead of www.site.com/products/1 you use for example the title of the product, something like www.site.com/products/samsung-galaxy-s21-black. Here 'samsung-galaxy-s21-black' is the slug (considering it to be unique for each object).
Instance is simply the object that you pass or retrieve from request.
Commit means you make some actions on forming an object and save changes into your database. Especially in django, if you set commit=False, means you saved object but did not added it to the database yet, which lets you to make some extra changes and then commit it and save.