Linux Format

Code a cataloguing application in Python

DJANGO

Credit: www.djangoproject.com

OUR EXPERT

Matt Holder has been a fan of the open source methodology for over two decades and uses Linux and other tools where possible.

QUICK TIP

More featurepacked source code for this project can be downloaded from https://github.com/mattmole/LXF-Django-Project

We’re going to start the process of creating an application that can be used to catalogue and search magazine articles, with the idea that once filled in, you won’t need to rifle through that massive pile of old issues to find a particular article. Consideration will be made to the fact that a publisher can have multiple magazines assigned, articles can appear in multiple magazines and that a magazine can have multiple issues.

The technology we are using to accomplish this is called Django. This is a library for the Python programming language, which allows web applications to be created. Similar to Python itself, Django comes with ‘batteries included’ and has some of the features we require built-in with its provided admin interface.

Django operates using the Model-View-Controller (MVC) paradigm, which means that the program is split into these three areas. Model refers to the data and how it is stored in a database. Django supports a wide range of databases, but for our purposes, a simple SQlite database suffices. Database access is via a database ORM (object-relational mapping), which means that Django provides Python

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