In the above code, I have assumed that you have defined URL patterns in the urls.py file…
Jump to turn (10)
- 1In the above code, I have assumed that you have defined URL patterns in the urls
- 2i will paste my templates models and views and give me perfect urls.py files
- 3Student Form Student Form {% csrftoken %} {{ form.asp }} Save this is forms.py a
- 4Student List Student List {% for student in students %} {{ student }} Edit Delet
- 5he third pattern ('<int:pk>/edit/') includes a dynamic integer parameter (
- 6no such table: firstcrudstudent
- 7Reverse for 'studentadd' not found. 'studentadd' is not a valid view function or
- 8for home page only add a student is displaying and it is directing save form and
- 9?csrfmiddlewaretoken=UDNXet0tT9y8iPPdh6EoCGfTfvWK2jyL3jLVgwxhVHXpbWUwL0nw52mOtGj
- 10from django.shortcuts import render Create your views here. from django.shortcut
- User
In the above code, I have assumed that you have defined URL patterns in the urls.py file for each view.
- Assistant
If you have not done so, you will need to define them. Here's an example of how to define URL patterns for the two views shown above:
code