▶️ Watch Entire Django Wednesdays Playlist ✅ Subscribe To My KZbin Channel: bit.ly/35Xo9jD bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/3sJpeV6
@mosesejele50893 жыл бұрын
@4: 40 A meta class is an inner class that provides a metadata about the outer class in Django, it define things such as available permissions, associated database table names, singular and plural versions of the name etc. Thanks for the video, it was really helpful.
@MrHossain2357 Жыл бұрын
Best video for new learner. I watched at least 5 different people's video, most don't describe the logic or tell the thing they are doing. But he explains every single steps which is great for person who are new to coding.
@Codemycom Жыл бұрын
Glad you enjoyed it!
@sambhusdharan75322 жыл бұрын
All your classes are at next level.. hats off.. love from india
@Codemycom2 жыл бұрын
Thanks!
@Good-and-Geeky Жыл бұрын
Tried FastAPI, Flask and now Django.... Loving Django. It makes so much sense. Good tutorial. Thanks
@Codemycom Жыл бұрын
Glad you like em!
@bhs_codz25343 жыл бұрын
You are one of the best teacher in the world love from india
@Codemycom3 жыл бұрын
Thank you!
@codewithmorris64923 жыл бұрын
after stucking for so long, and then watched your video, I have finally get the solution. TQVM. Subscribed
@Codemycom3 жыл бұрын
Glad I could help
@Kingofnekos_osu2 жыл бұрын
hello, when i submit the form i get submitted = True but it wont return your venue addded succesfully why
@CryptotechCh-tw5ib Жыл бұрын
Your video helped me a lot to understand forms in the minimum time! Thank you so much for the great job
@Codemycom Жыл бұрын
Happy to help!
@saminrahman51652 жыл бұрын
wow .This video helps me a lot in understanding forms in django. I have read the django doc but your video helps me a lots . Moreover your teaching skill is amazing
@Codemycom2 жыл бұрын
Glad you're enjoying it!
@eduardjogi3 жыл бұрын
Hi John, GREAT COURSE.... I get a error message when i try to add the form (12:27). The error message starts with ValueError at /add_venue ModelForm has no model class specified. And below: Error during template rendering In template C:\PY_Projects\myclub\myclub_website\events\templates\events\base.html, error at line 0. Do you know what this could be? I have (double) checked the code but could not find any errors.... Much appreciated!!
@eduardjogi3 жыл бұрын
ALready got it :)..... Missed a line :(
@Codemycom3 жыл бұрын
@@eduardjogi Yeah was gonna suggest putting is aside for a few hours and checking it again with fresh eyes
@flavius28843 жыл бұрын
@@eduardjogi I got the same problem. What line?
@eduardjogi3 жыл бұрын
@@flavius2884 Hi David, I cant remember it anymore. I would advice you to look at the vid again and pause every time John add something to the files. Another option is to take a look at his files at his github. Good luck :)
@aniket.r.thakur2 жыл бұрын
1000th Like is Mine !!!!
@Codemycom2 жыл бұрын
Awesome!
@jeremyeddlemon11 ай бұрын
This doesnt seem to work in Django 5. I have watched the video several times and cannot see any errors in my code. Did anyone get this to work with Django 5?
@Codemycom11 ай бұрын
Of course it works with Django 5
@jeremyeddlemon11 ай бұрын
@@Codemycom Yes, sir. I will keep digging. You have great a channel, btw.
@ruffyistderhammer58602 жыл бұрын
at 18:39 how can line 20 ever be accessed?
@joshuabarawa92322 жыл бұрын
Thnaks man...You always have what i need
@jimmybatista64883 жыл бұрын
when adding venue i do not get the page added sucessfully redirect but it does add it to the database
@Codemycom3 жыл бұрын
what did you do differently from the video?
@Kennerdoll2 жыл бұрын
@@Codemycom same here so right now I'm still checking but I can see it in the web browser '/add_venue?submitted = True'
@silvermind4222 Жыл бұрын
How can I use textarea to take input for one of the table in django
@alemagnific6910 ай бұрын
Thank you very much for the video I had two questions: the first is how can I make it so that the saved information is saved and only viewable by the user account that created it (I say this because I have made a registration and login system with authentication of a password manager web app and therefore it would be inconsistent to see the passwords of all) the second: if this information saved on the database I want it to also be viewable on an html page organised in rows/columns, how can I do this? and if so whether there is a possibility from the html page to delete a saved password (via a button) instead of doing it from the django administration.
@Codemycom10 ай бұрын
your questions are all answered in the videos
@yunikashrestha5345 Жыл бұрын
I'd like to add an author for the form, where the author being the logged in user themselves. How do I do It?
@cadenwiles49812 жыл бұрын
I am trying to add a place holder to a Form.select field for a combo dropdown box. I am wondering if you have any easy references for how to use the place holder in a combo box. Thanks
@dmitry8732 Жыл бұрын
what if i use namespace:name, how can i add "?submitted=True" ? i have error "Path not found"
@mxmx88082 жыл бұрын
Hi. Great course. I like to listening very much. I learned a lot from you. Have you thought about doing a course on how to use datapicker in record editing forms? I have a model-based form. I have working code that adds a record. I use the same form for editing, but unfortunately it does not retrieve the current record data. I have to enter a new date when editing. I was also thinking about using the datapicker with admin. There are a lot of tutorials on stackoverflow - I've tried a few of them but they didn't work for me :)
@rafaeljesus9187 Жыл бұрын
How do you do to have a label for the primary key of the class?
@Jonny-gi4iz Жыл бұрын
Thanks for the video, it was very helpful in learning django!
@Codemycom Жыл бұрын
Happy to hear it!
@panfi14082 жыл бұрын
How could I print out what Venue was created in the /add_venue?submitted=True?
@piotrrybka318 Жыл бұрын
But what about auto-increment id columns? I got `Cannot insert explicit value for identity column in table 'xyz' when IDENTITY_INSERT is set to OFF. (544) (SQLExecDirectW)")` error all the Internet redirects me to my database setting, whereas I want to fix my Django app.
@Codemycom Жыл бұрын
Django auto increments id columns automatically.
@raminfarzi4229 Жыл бұрын
sooooo good video very useful thanks
@Codemycom Жыл бұрын
Welcome!
@MrBrightsideTK3 жыл бұрын
22:10 How can I add a class to all form fields (same as "__all__" in fields variable)? Let's say I have 40 fields, it is so inconvienient to adding all of them.
@BonesD232 жыл бұрын
Correct by adding "__all__" you should be able to add all the fields, The idea of doing it Manually is for you to see that is not Necessary to add all if you have field that are not mandatory and you don't need them hope this help.
@varanushimu60153 жыл бұрын
Hey this project is amazing. Plz finish this peoject ASAP....i cant wait!
@Codemycom3 жыл бұрын
Thanks! New video every Wednesday
@mdgolamrabbani50711 ай бұрын
i want to show how html redirecting part is working? Whict is the other vedio that you have shown this
@Codemycom11 ай бұрын
Sorry, don't know what you mean.
@israahussein75823 жыл бұрын
great explanation !
@Codemycom3 жыл бұрын
Thanks!
@aribalmarceljames99082 жыл бұрын
can you help me why in my forms.py the bootstrap wont activate
@lorimedicenter44392 жыл бұрын
thank you very much .you help us to create our project.... !!! could you make video about ecommerce
@Codemycom2 жыл бұрын
Happy to hear it!
@behroozfalsafi79513 жыл бұрын
Thank you for the video. It was very helpful.
@Codemycom3 жыл бұрын
Very welcome!
@mohanasubbu58613 жыл бұрын
thanks a lot... I have one problem the data was successfully stored in db... but the done message automatically disappeared suddenly ... what can i do...
@mohanasubbu58613 жыл бұрын
please reply me... i am stuck in this problem
@Codemycom3 жыл бұрын
what did you do differently from the video?
@sravanigundepalli3513 Жыл бұрын
how to add 2+venues or events at once in form of table
@seeemawn3 жыл бұрын
second chapter, line 2 on models.py "from django.forms import ModelForm": Is this line necessary or can this definition/class be inherited by forms.ModelForm? sry for my bad english :)
@Codemycom3 жыл бұрын
Yes, it's necessary
@hayet31982 жыл бұрын
Thank you very much, Heisenberg
@Codemycom2 жыл бұрын
lol
@naedeezy89673 жыл бұрын
I love you man!
@Codemycom3 жыл бұрын
Thanks!
@balwinderrani8093 жыл бұрын
Hello first comment
@balwinderrani8093 жыл бұрын
Yes
@Codemycom3 жыл бұрын
Awesome
@bede_hampo3 жыл бұрын
Good day sir, please what's the best way to store phone number in Django models ?
@Codemycom3 жыл бұрын
Probably just as characters
@vikasmaur79473 жыл бұрын
Hey, i watched your first video and did all the steps you did in the video. But when i ran "python manage.py runserver" at last it is showing an error : "No module named app_name" . What can i do?
@Codemycom3 жыл бұрын
You either don't have your virtual environment turned on, or you aren't in the right directory in the terminal. When you type the command: ls do you see manage.py file listed?
@vikasmaur79473 жыл бұрын
@@Codemycom yes when i ran ls command it showed manage.py and at the above it show the name of virtual environment in fact i tried doing the whole thing without virtual env but still faced same error
@Codemycom3 жыл бұрын
@@vikasmaur7947 Well yeah, it wouldn't work without the virtual environment. You might have to delete it all and start over...you missed a step somewhere.
@vikasmaur79473 жыл бұрын
@@Codemycom okay i'll try doing that Thanks
@vikasmaur79473 жыл бұрын
Hey! I actually figured out what the problem was. Actually i had written "name_of_app/urls" in the views.py file but when i saw the tutorial again i found that it was "name_of_app.urls" and when i corrected that it ran successfully. Thank you very much john. You make awesome tutorials . I really love watching you.
@محمدخلیلی-خ2س2 жыл бұрын
thank you
@Codemycom2 жыл бұрын
Welcome!
@bahdev13243 жыл бұрын
Is this going to be part of ur Codemy courses?
@Codemycom3 жыл бұрын
No, this is just on youtube
@bahdev13243 жыл бұрын
@@Codemycom OK I bought ur courses last month Just want to know if some videos here are included there...
@Codemycom3 жыл бұрын
@@bahdev1324 Generally speaking, the paid courses are not free on KZbin...that's why they're paid.
@bahdev13243 жыл бұрын
@@Codemycom Okay sir thank you...
@k.t.51842 жыл бұрын
If we directly go to the url: /add_venue?submitted=True It takes us to the page saying you submitted successfully, how to restrict this page only when we submit and will not show if we go directly to the url??
@syedkhizar86243 жыл бұрын
didn't return an HttpResponse object.
@christymarychacko4323 Жыл бұрын
sir I can't display the message. Could you help me?
@Codemycom Жыл бұрын
Just rewatch the video and discover what you did differently from the videos. I show you everything you need.
@christymarychacko4323 Жыл бұрын
@@Codemycom 😀Thank you sir
@1412-kaito Жыл бұрын
4:20 Meta is not a Python thing, it's a Django thing. but Django is a Python thing, right?
@aguspe5323 жыл бұрын
Hi! Do you have the code in Github?
@Codemycom3 жыл бұрын
github.com/flatplanet/djangoblog
@HuyNguyen-xp4ro3 жыл бұрын
Thanks for best video. Can you tutorial style label djangoform ? Thank you !!!
@Codemycom3 жыл бұрын
Yeah, I have videos on that
@HuyNguyen-xp4ro3 жыл бұрын
@@Codemycom ya, I think we need to do this without bootstrap, I want to learn basically ! Thank you :D
@Codemycom3 жыл бұрын
@@HuyNguyen-xp4ro What's the difference? Nothing I'm showing requires the use of Bootstrap, it's just easier that way. No one reinvents the wheel
@assaulttork63843 жыл бұрын
How do you prevent user from going back to same form by pressing back button?
@Codemycom3 жыл бұрын
The browser handles that
@jithingeorge1946 Жыл бұрын
class Meta allows you to edit the metadata......cheers!
@Codemycom Жыл бұрын
lol yeah
@mynameisgod11353 жыл бұрын
Please include hashing in this video series
@Codemycom3 жыл бұрын
Not really likely, but you never know.
@bidhyapokhrel10063 жыл бұрын
hello plz make a video for login and registration by using forms.py files
@Codemycom3 жыл бұрын
Yeah will probably get to that
@sartajjamalchowdhury52813 жыл бұрын
Thanks !!!!!
@Codemycom3 жыл бұрын
Welcome!
@gouthamgoutham76403 жыл бұрын
Sir pls do followers and following system
@Codemycom3 жыл бұрын
we'll see
@learnwithnawf2463 жыл бұрын
The output looks different for me but I wrote the same code is there any reason
@TheDarienspider10 ай бұрын
I wish he would increase the screensize so we can see all of the code and not just roughly 50char length
@Codemycom10 ай бұрын
code is in the pinned comment champ
@hackerdaddy28283 жыл бұрын
hello third comment
@Codemycom3 жыл бұрын
Awesome
@chanchalkrishna33362 жыл бұрын
Please solve this question Write a function to find if a given inputted word can be made from the string. Example1: If a string “cat” is entered in the input string 1 then the alphabets in the master string allocate ‘c’,’a’,’t’ as already in use. So, the next input string entered will be matched with the remaining characters in the master string. Example2: If the second string entered as ‘egg’ then the required character ‘e’,’g’,’g’ checked from the balance master string. If it's found in the master string, then ‘Yes’ else ‘No’ Setup Django form with following fields. Master String, String 1, String 2, String 3, String 4 Sample Input Master String: aabcglactdde String 1: cat String 2: egg String 3: bat String 4: ball Sample Output Cat: Yes Egg: No Bat: No Ball: No Note: ‘bat’ is marked as ‘no’, because in the given master string(aabcglactdde) only one ‘t’ is given and it's already used for ‘cat’.
@Codemycom2 жыл бұрын
lol no one is going to do your homework for you
@chanchalkrishna33362 жыл бұрын
@@Codemycom it's not home work . I did partially completed. But I am confused .
@mohamedmamoun18703 жыл бұрын
والله يا اب صلعه قعد تجيني في جررح عديييل
@kittyrah2800 Жыл бұрын
I had to refactor my view to look like the code below. Otherwise I kept getting the error: cannot access local variable 'form' where it is not associated with a value refactored: def add_venue(request): submitted = request.GET.get('submitted', False) if request.method == 'POST': form = VenueForm(request.POST) if form.is_valid(): form.save() return HttpResponseRedirect('/add_venue?submitted=True') else: submitted = True else: form = VenueForm() context = {'form': form, 'submitted': submitted} return render(request, 'addiction_events/add_venue.html', context)
@eleksonkurbah40132 жыл бұрын
Sir, i am getting this error "GET /add-venue?submitted=True HTTP/1.1" 404 2634
@agustin-xc8rg3 жыл бұрын
Thank you!!, this video was very helpful.
@Codemycom3 жыл бұрын
Glad you liked it!
@muskankaushik38342 жыл бұрын
'/add_venue?submitted=True ... I don't get this and it gives me this error - The view events.views.add_venue didn't return an HttpResponse object. It returned None instead. Please help me out!
@Codemycom2 жыл бұрын
check your code vs the video, you just did something different.