In this series of articles, we’ve been working on a cataloguing application, where magazines, I newspapers and corresponding articles can be added, stored and eventually searched. In parts one and two, we introduced Django, described some basic database theory, created our database models, explored the built-in shell, added some URLs and created some views and HTML pages to view output from the software. We also explored the admin interface, which allows data to be added and deleted.
In this final article, we’re exploring the forms functionality, which allows for HTML forms to be added to our web pages to provide data entry, and then we’re creating a page to enable us to search the database and return articles, authors and publications.
A completed project can be downloaded from GitHub (see the QuickTip, below-left) and contains the functionality discussed in the three articles and more.
First, let’s create a search page. This will consist of a URL to link against the