Nothing Special   »   [go: up one dir, main page]

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 Format3 min read
Schim
Back in 2007 or so there was a real trend for indie puzzle-platformers, usually about a sad boy who had to go from the left of the screen to the right for some reason. Although it’s not a 2D platformer, Schim reminds us of that era, when indie games
Linux Format3 min read
Sleeper OS Bee v2
Sleeper OS is a new Linux distribution. So new, in fact, that DistroWatch has yet to add it to its comprehensive online database. In its short lifetime, the OS has gone from being based on Rocky Linux to “embracing an MX Linux base”. MX itself is bas
Linux Format11 min read
Emulate The Classic Psion PDA Range
High school in the ’90s is where we saw our first Psion PDA (personal digital assistant) that we knew was a Psion. A classmate brought in a Psion 3a with a series of solid-state disks (yes, SSDs!) that had games and programs on. We forgot all about a

Related Books & Audiobooks