As I click on this, it will give me all the details okay? Right?
Here teacher object 1 is written, it means the name of the teacher is not displayed yet.
So what do you need to do?
why is it showing in this way because django is form based. okay?
So obviously it will create an object right?
It will convert the saved data into an object, that means, the data we saved right now has become an object.
Now if i want to show the name of an object how will i show it?
See, you need to go inside the model, here is a predefined function, you need to write def str.
Okay? right? And here what you need to do is, write id self.firstname.
You need to show your first name, so write here first name.
What does this function do? This converts your object into string.
This function is used for converting object into string
okay? Right? Clear? Understood?
Now as you will open admin panel again, refresh it and see here is the name. okay?
Now as we will add particular teachers, like I added rahul sharma, his email id and his number. okay?
I saved, see here “Rahul” is also created.
What did this particular thing happen?
We made models and added in django admin panels and now we can do anything with it.
Admin panel can access anything with these particular panels. right? Clear? Understood?
So when we meet next time, our next video will be on crud operation with django.
Where I will teach you how to integrate templates, how to work with html and how to work with forms.
If you have any queries or comments, click the discussion button below the video and post. there. This way, you will be able to connect to fellow learners and discuss the course. Also, Our Team will try to solve your query.
The Django admin is a sophisticated built-in utility that allows you to use a web interface to create, update, and delete objects in your database. The Django admin may be customised to perform practically whatever you want.
We can programmatically fetch all of the models in the project and register them with the admin interface to automate this process. Add the following code to the admin.py file. This will pull all of the models from all of the apps and register them in the admin interface.
Field names should be lower case, according to Django style requirements.
Is it necessary to include the code block you described in admin.py or models.py?
Django includes a built-in administration interface. Django's admin allows you to automatically authenticate users, show and manage forms, and validate data. Django also has a user-friendly interface for managing model data.
In your terminal, you should see the url http:127.0.0.1:5000. Open your favourite browser and go to that url or localhost:5000. The Admin Dashboard login screen should appear. You must create an account in order to view the main page/dashboard.
where will i get code access for the project source code?
this course structure is very good. I suggest for learning to this website.
Superb and amazing 😍🤩 enjoyable experience.
Er Komal Gupta
thnku so much sir. after waisting so mch time in boring videos.i learned only from here.explained vry well and i will suggest evryone that learnvern is the bst online plateform where you can learnalot
ajax lesson was something like boring . But , learned a lot with the sunit sir . Just learned how to deal with ajax in django