Built with django CMS

The powerful, open source CMS made with python.

Website Wikipedia


Latest Tutorials

Django Forms, Overriding the queryset on a select field to exclude options already used.

May 6, 2019 Chris Shaw Tutorials 2791 views

In a Django form, It is posibble to override the queryset that produces the results displayed in a 'select field' from a foregin key. In this tutorial, we will pass valuse from the view to the form to build the queryset.


Setting django's static and media URLS

March 4, 2019 Chris Shaw Tutorials 3386 views

Setting your static and media urls for your django project on a shared server is simple. Make it habit to be one of the first things you do as you start a new project. All the examples in this project are for django version 2.x.


Django 2.1 and Sentry integration with Custom Error Pages.

Feb. 28, 2019 Chris Shaw Tutorials 1195 views

So you have built a Django site, the client is happy and you put it in production mode in the wild. But what if there are errors in cases that you could not even have imagined? How do you make sure you know what errors that users are experiencing? At the very least you should enable logging, with email alerts being sent for any ERROR or CRITICAL level errors. This is probably acceptable for a low traffic site. I would however reccomend using Sentry with thier powerful Djando intergration. In this tutorial, we will look at how easy it is to intergrate a free Sentry account with our project, and as a bonus, set up some custom error pages that also send logs to Sentry and even have an optional feedback form.


Managing static files with django on a shared server

Feb. 14, 2019 Chris Shaw Tutorials 291 views

Getting the static files to display correctly when hosting your django site on a shared server is quick and easy in a few steps.


Edit on a remote server with Atom and FTP

Feb. 13, 2019 Chris Shaw Tutorials 2312 views

I will start by stating, this is probably not the best practice, but it is really convenient to be able to connect to and edit you live site using Atom on your machine. It certainly beats shelling in and editing with an editor like Vim or trying to use the cPanel file manager to find and edit files.