Linux Format

Code an admin back-end in 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.

L ast issue we began a project to catalogue magazine articles, which makes it a lot easier to search for interesting topics, rather than hunting through a pile of magazines. During the tutorial, we introduced Django, which is a Python web framework, and designed our first models, which are how the data is stored in the database, including relationships between different database tables.

Django uses an object-relational mapper (ORM) to interact with the underlying SQL database, allowing for data to be interacted with as Pythonic objects, and this was also introduced. We also introduced Model-View-Controller (MVC) concepts, which are used to provide clear separation between the storage of data, processing of this data and how it is displayed or interacted with by the user. Finally, we introduced 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