Anonymous user
Django for Designers/CRUD: Difference between revisions
→Making a basic, working ModelForm
imported>Aldeka |
imported>Aldeka |
||
Line 100:
Right now, if you try to submit bookmarks with this form, it'll just reload the page. That's because we haven't told the view to do anything with any form data that gets sent to it!
Let's edit ''views.py''. First, let's add
<source lang="python">
from django.shortcuts import render, get_object_or_404, redirect
</source>
|