Django for Designers/CRUD: Difference between revisions

Content added Content deleted
imported>Paulproteus
(→‎Part 4: CRUD: Add clarity as to which files we are editing)
imported>Paulproteus
(→‎Making a basic, working ModelForm: Last item of a dict gets comma after it)
Line 48: Line 48:
context = {
context = {
'bookmarks': bookmarks,
'bookmarks': bookmarks,
'form': form
'form': form,
}
}
return render(request, 'index.html', context)
return render(request, 'index.html', context)
Line 106: Line 106:
context = {
context = {
'bookmarks': bookmarks,
'bookmarks': bookmarks,
'form': form
'form': form,
}
}
return render(request, 'index.html', context)
return render(request, 'index.html', context)