Linux Format

Finish your cataloguing app

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

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format5 min read
Some Ansible Advice For Around The Home!
Of late, this writer has been busy creating new virtual hosts for different things and decided that it would be an ideal time to get stuck into Ansible. Things have evolved in system management since Bash. Ansible is a great way to deploy software c
Linux Format14 min read
Ubuntu at 20
Without Ubuntu, the current Linux landscape would be unrecognisable. Back in October 2004, the first 4.10 (2004.10) release of Ubuntu, with its intriguing Warty Warthog code name, leapt from obscurity to being one of the most downloaded Linux distrib
Linux Format3 min read
Kernel Watch
Linus Torvalds announced the fourth RC (Release Candidate) for what will become Linux 6.9 in another few weeks. In his announcement, he noted that there was “Nothing particularly unusual going on this week – some new hardware mitigations may stand o

Related Books & Audiobooks