Blog Details
Blog Title: | Django Authorization |
---|---|
Blogger: | manishsangu007@gmail.com |
Image: | View |
Content: | What are the points we will cover in this documentation?
step 1: - In this step we will cover trainer registration and a learner who also wants to register as a trainer as well. models.py: - views.py: - urls.py: - Now, we need to create two templates ‘trainer_registration.html’ and ‘learner_as_trainer.html’. trainer_registraion.html: - learn_as_trainer.html: - Output: -
Now, Admin we will check trainer details through admin dashboard and verify it and give authorization to trainer.
Step 2: - Course creation for authorized trainer. models.py: - forms.py: - views.py: -
urls.py: - Now, we need to create three html files ‘course_info.html’, ‘course_details.html’, ‘course_basic_details.html’. course_info.html: -
Output: -
course_details.html: -
Output: -
course_basic_details.html: -
Output: -
|