We now understand the behavior necessary for creating webpages that interact with Django forms. In the next two subsections, we create a view based on the pseudocode we just built, followed by the creation of a URL pattern for our view.
We can now program a function view for creating a
Tag object by translating the pseudocode from the end of last section into Python. Open
/organizer/views.py and create a basic function view called
tag_create(), as shown in Example 9.5.
23 def tag_create(request): 24 pass
We can take the pseudocode from the last section and fill in the view with comments. Our first goal ...