Python on unop
https://unop.uk/tags/python/
Recent content in Python on unop
Hugo -- gohugo.io
en-gb
j.p.singleton+[email protected] (James Singleton)
j.p.singleton+[email protected] (James Singleton)
© James Singleton
Tue, 22 Feb 2022 12:00:00 +0000
-
Python on the Edge
https://unop.uk/python-on-the-edge/
Tue, 22 Feb 2022 12:00:00 +0000
j.p.singleton+[email protected] (James Singleton)
https://unop.uk/python-on-the-edge/
My latest project involves running Python not only in the cloud (with Django and PostgreSQL) but also on remote edge devices (Raspberry Pis).
-
Using Django REST Framework Token Authentication with Python Requests
https://unop.uk/using-django-rest-framework-token-authentication-with-python-requests/
Wed, 19 Jan 2022 15:00:00 +0000
j.p.singleton+[email protected] (James Singleton)
https://unop.uk/using-django-rest-framework-token-authentication-with-python-requests/
I’m a big fan of Django REST framework. It’s great for making an API that is used by unattended processes or third-parties.
-
Securing Django on Heroku and Secret Key Generation
https://unop.uk/securing-django-on-heroku-and-secret-key-generation/
Tue, 18 Jan 2022 16:00:00 +0000
j.p.singleton+[email protected] (James Singleton)
https://unop.uk/securing-django-on-heroku-and-secret-key-generation/
Heroku is an easy platform to host a Django app on but you should set a few things to make sure your app is secure.
-
Django UUID Tips
https://unop.uk/django-uuid-tips/
Fri, 17 Dec 2021 16:00:00 +0000
j.p.singleton+[email protected] (James Singleton)
https://unop.uk/django-uuid-tips/
I typically use universally unique identifiers (UUIDs), also known as globally unique identifiers (GUIDs), as the public IDs for objects in an application.
-
Django 4.0 and 3.2.10
https://unop.uk/django-4-0-and-3-2-10/
Fri, 10 Dec 2021 15:45:00 +0000
j.p.singleton+[email protected] (James Singleton)
https://unop.uk/django-4-0-and-3-2-10/
Django 4.0 is out and so is Django 3.2.10. Which one should you go for?
3.2.10 is the last minor release of this LTS version.
-
Django Database Migrations Tip
https://unop.uk/django-database-migrations-tip/
Mon, 22 Nov 2021 15:45:00 +0000
j.p.singleton+[email protected] (James Singleton)
https://unop.uk/django-database-migrations-tip/
I’ve been doing some more work with Django 3.2.9 (on Python 3.10) and I came across some sub-optimal migration strategies. I’m using PostgreSQL but this applies to any database.
-
Python pyenv Shims Not In PATH Fix
https://unop.uk/python-pyenv-shims-not-in-path-fix/
Thu, 18 Nov 2021 16:00:00 +0000
j.p.singleton+[email protected] (James Singleton)
https://unop.uk/python-pyenv-shims-not-in-path-fix/
I was doing some work with Django 3.2.9 and Python 3.10 recently, and I came across a strange issue. The root cause of this was that the pyenv shims had disappeared from my PATH and so the system Python version was being used.
-
Projects
https://unop.uk/projects/
Fri, 06 Jan 2017 10:00:00 +0000
j.p.singleton+[email protected] (James Singleton)
https://unop.uk/projects/
Below are a selection of just some of my projects. Follow the links for details:
Electric Shift - Compares the carbon intensity of your next two electricity off-peak periods in your region so you know if it’s better to charge the car tonight or tomorrow night (blog post) Mobile-Friendly London Transport Status in React - reactube.