-
Scripts to help setup your server
Setting up your server to be correctly configured to accept traffic and proxy it back to the correct applications can be difficult at times.
-
What I was reading – Jan 2018 Edition
Welcome to the first monthly edition of my “What I’m reading” series. Click here to read other posts in this series.
-
Django: Setting Cookie and returning a rendered template – an example
While trying to figure out how to set cookies with Django (something I’ve been lucky enough to not have to do) I was of course searching “How to set a cookie with Django” this was the first result I found. Now that’s a great link and all, and it points to the relevant Django Docs.
-
Introducing StewPolley Tools
As mentioned in my “year in review” post, I mentioned wanting to release tools that others may find useful in their day to day lives.
-
Allowing HTML Purifier to accept the details and summary tags.
The HTML Purifier library is a great way to filter user-supplied HTML, normally from WYSIWYG Rich Text editors, and remove potentially malicious content. It can also be used to ensure that certain elements always get saved with particular attribues. Ie, ensuring any user-supplied link has
target="_blank"
andrel="nofollow"
. Depending on your use case, you may even want to prevent users from inserting non HTTPS links etc. -
2017 Year in Review – What I’m reading!
It’s a brand new year. Many people have set their new years resolutions, companies are starting new projects, and for those in Australia and other countries where school years match calendar years, school kids are getting ready to start another year at school. In many ways, this blog is one such “new thing” that’s being started.
-
Rendering a JSON string inside a script with Django
Building a list of form submissions in Django last night was causing me some issues. This is likely a common issue for people and something most people know already, but I wasn’t able to find a nice answer online after my searching, so here’s my solution for others to benefit from.
-
Django, Axios and CSRF
I am currently building a simple Django based web-app. Part of this app is a registration form. It has a rather nice UI, built from Vue, and I’m POSTing the data back to Django using Axios.
-
Getting setup.py to add commands to the path
There’s a number of articles out there that mention this, but they’re a bit of a pain to follow. Of them all, I found this set of docs to be the most useful, but still lacking.
-
Deleting files within a directory with a given extension
I wanted to delete a large number of .SRT files from some TV shows I had. (Sub-title files)