Of the thousands of hours of tutorials I’ve watched you’re simply the best. Idk what it is but when I’m working with you it always just syncs in and sticks better. Thank you sir!
Your tutorials are really great. I have watched several tutorials from other channels but coouldnt grasp what they tought as compared to your way of explaining things. Thanks a lot. I am on the 21st tutorial right now and i hope the rest will be exciting as well
please help me ... what if i want to render all the data from the database and not just get restricted with "id's" and then be able to print out {{ object.title[1] }} --- [1] would represent the first product item and the title of that item... is something like this possible?
nice tutorial. There is one more question: now you were working only with id=1. How can you set up the same with all data in your dataset without manually changing the id from 1-X?
Great tutorials you got here. I have a question: maybe there is not need to check if description is None. If we know that it is string, then the only way it is null, when it is empty string. And that's why it didn't work when you compared it to None
Do you do any videos on Django tables2? Specifically, totaling columns, calling other views using a non-pk and pass the non-pk to the next view? I am enjoying your videos and I have learned a lot. Also your presentation methodology is perfect. Thank you for doing these.
I have a question regarding class models. I have a django model ServiceRequest that has a request number that is comprised of 6 digits; the first two are the year followed by sequential number. For example, 200001. When a user goes to submit the next request, the request number should be 200002; or, if it is the first record in the next year it would be 210001. This needs to be a default value for the field without any input from the user. I know how to populate the year. but what I cannot figure out is how to set up the model to query the database to look at the previous record in order to properly set the value of the field. Side note: python is my first language and this is my first django project, so please be gentle :)
Sir can u please tell how to display a model(database) entries list as a FORM, so that its values can be edited. i actually have a db for participants list that includes a column for attendance. later at the event i want to mark attendance, so i want to b able to edit that column from the website and resave/update that db ?????
How is it possible that template from products application can utilize base.html from pages application? I also did few experiments and it seems that django just pick the last available template file when you have a name collisions in different applications. Also your code won't work if we remove pages application from INSTALLED_APPS in settings.py. Aren't applications supposed to be independent? Is there a way to encapsulate templates in different applications from each other?
Of the thousands of hours of tutorials I’ve watched you’re simply the best. Idk what it is but when I’m working with you it always just syncs in and sticks better. Thank you sir!
Your tutorials are really great. I have watched several tutorials from other channels but coouldnt grasp what they tought as compared to your way of explaining things. Thanks a lot. I am on the 21st tutorial right now and i hope the rest will be exciting as well
i have problem with those people who dislike it...?????????????
love your videos..... thankyou for sharing your knowledge with us..
Can’t please everyone 🙌
Your explanation skill is excellent, it is actually a hard understood concept, but you just have a way to explain it as clear as crystal. Thank you.
You're awesome dude. The way you explain every little details is exceptional.
Thank you 🙏
Finally got data showing cos of this - thanks!
You are My Hero ! what a great content.
Hey Justin, What kind of screen recorder and video editor do you use?
please help me ... what if i want to render all the data from the database and not just get restricted with "id's"
and then be able to print out {{ object.title[1] }} --- [1] would represent the first product item and the title of that item...
is something like this possible?
This was helpful thanks!
nice tutorial. There is one more question: now you were working only with id=1. How can you set up the same with all data in your dataset without manually changing the id from 1-X?
Did u figure it out ??
Great tutorials you got here. I have a question: maybe there is not need to check if description is None. If we know that it is string, then the only way it is null, when it is empty string. And that's why it didn't work when you compared it to None
Do you do any videos on Django tables2? Specifically, totaling columns, calling other views using a non-pk and pass the non-pk to the next view? I am enjoying your videos and I have learned a lot. Also your presentation methodology is perfect. Thank you for doing these.
I have a question regarding class models. I have a django model ServiceRequest that has a request number that is comprised of 6 digits; the first two are the year followed by sequential number. For example, 200001. When a user goes to submit the next request, the request number should be 200002; or, if it is the first record in the next year it would be 210001. This needs to be a default value for the field without any input from the user. I know how to populate the year. but what I cannot figure out is how to set up the model to query the database to look at the previous record in order to properly set the value of the field. Side note: python is my first language and this is my first django project, so please be gentle :)
If i do to display users detail on their page privately. How can i do that automatically as id=1 works for only one.
Sir can u please tell how to display a model(database) entries list as a FORM, so that its values can be edited. i actually have a db for participants list that includes a column for attendance. later at the event i want to mark attendance, so i want to b able to edit that column from the website and resave/update that db ?????
Thanks for your awesome work!
Thank you!
Why don't use locals() instead context? Yes, it's not as obvious as context variable, but it make code much more cleaner.
how to get the primary key of current object ??
is there an auto save plugin so we don't get as many errors for not saving all the templates, views, etc.
Check out the program VS Code instead of sublime text. I’ve changed since recording this video
@@CodingEntrepreneurs pycharm....
Awesome Tutorial !
Does sublime support debug with breakpoints? I know vs code does.
This is just beautiful.
How is it possible that template from products application can utilize base.html from pages application? I also did few experiments and it seems that django just pick the last available template file when you have a name collisions in different applications. Also your code won't work if we remove pages application from INSTALLED_APPS in settings.py. Aren't applications supposed to be independent? Is there a way to encapsulate templates in different applications from each other?
Perhaps watch our whole series? We cover this.
am getting error "type object 'Products' has no attribute 'object' " even i have 5 objects in DB
i think its Product.objects, not Products.object
@@hellokitty13577 still happens
On my VS Code also accuses this error, but it works perfectly when I run the server.
To stop accusing the error I had to put objects = models.Manager() in the model definition. It seems to me that it is working as it should as well.
I m getting the same error
I tried object = models.Manager() but it doesent work
A lot of roses for you. I'm clear != and other operator. Thanks.
Dear Sir can tell me how to fetch multiple data from database in django in admin side ??.
You are Awesome!!
I don't know why, whatever I put in my context won't show up when I load the page in the web. Django doesn't mark any errors, it just won't work.
When you watch the ad for 10+ seconds and then tries to skip it.
Can I have Github code url
your are just awesome.
Thank you!
Thanks a lot!
Thanks!
Nice!!!!
Cool
+
thank you so very much!