Empty Image Fields in Django
How to set a single value as blank for your Django FileField and ImageField.
How to set a single value as blank for your Django FileField and ImageField.
Local and remote files might behave differently.
A quick outline of how to create a custom migration in Django.
A by-no-means-comprehensive list of notes from DjangoCon US 2024.
Template your business logic algorithms to swap out different services without breaking your application.
You can add your own custom logic to your model deletion and provide helpful messages to the user in the Django admin.
Customize your dataclass dictionary generation.
Where and how to validate your Django REST Framework API
How to stop the development server when your terminal window is nowhere to be found.
djarter is a Django starter template with a custom user model, auth views, and various quality assurance tools.
Simple logging in Google Apps Script can be done with console.log
Set a timer to clean your inbox of old emails
Some extremely useful tips I learned from Adam Johnson's book, Boost Your Git DX.
Store Django queries as JSON objects
Written by Ed Carter
If the pandemic has confirmed one thing it’s that the tech sector isn’t slowing down and its willful stewards, the computer programmers (or ‘coders’), continue to enjoy high demand. If you’re an aspiring coder, it’s now more viable than ever to go …
If you’re looking to build your Python skills, there are a bunch of resources out there. Being self-taught, I’ve gone through quite a few of them!
Here’s a list of the most memorable stuff I’ve come across, as well as an explanation of a few basic …
I have a few Django apps in a Django project. I used factory_boy to mock a bunch of the data, but I have a few hundred rows of accurate data in my production database. It made sense to work on a copy of that data as it contains no sensitive …
I’m using Hyper-V on my workstation to run a Ubuntu Linux virtual machine.
I recently moved and changed my office setup. Previously I had a Cat 6 cable into a 2.5G Realtek Ethernet Adapter running into my router, plus a SFP+ DAC cable running into a 10G switch …
In my day job as a personal trainer, I find myself doing a lot of repetitive tasks. When writing a training program, there’s SO MUCH clicking to format a Google Sheet well enough to make a professional product.
So I started playing around with macros and found it easy …
I recently added sorl-thumbnail to a project for creating smaller image files. I chose to configure with a Redis Key-Value Store, as I’ve heard Redis is super hip, but ran into trouble during deployment.
In this post, I’ll document how I set up Redis locally with Docker, then …
I’ve been building a Django project template using Docker Compose, PostgreSQL, and Nginx. Docker is a definite weak point for me, so I used an article from Michael Herman to set it up: Dockerizing Django with Postgres, Gunicorn, and Nginx.
I made some additions to that tutorial – custom user …
I ran into a problem recently when trying to reconfigure my Django project’s database.
I had a DateTimeField on my model that I was updating to have null=True and blank=True.
There were no rows in this table. I was able to make the migrations, but then ran …
Get a grasp on these multiple environments
Years back I bought a physical copy of Two Scoops of Django 1.11 after seeing it highly recommended in a book called Hello Web App by Tracy Osborn. Little did I know it was way over my head at the time.
With the release of Two Scoops of Django …
I have a buddy who recommended switching to z shell as my terminal. He showed me some pictures and it looks nice and pretty, so I started researching.
Most results suggested installing Cygwin and then using the Cygwin terminal to install z shell. I went and did all that, it …
Let's find out where that database is located!
So you’ve been frantic as you try to fix a bug. You get lost in the work and totally forget where you are. All of a sudden… SUCCESS! It works!
Amazing.
But oh no, you just put your secrets into a tracked file. What to do, what to do …
In my other life, I film a lot of videos on fitness.
After a recent lecture a few friends and I did for charity, I found out… I’m out of storage space!
I built a server for my home to not only store the videos I film, but also …
Help me access this device!
Some thoughts on learning and advancing your web development skills.
Need to practice your skills and build your portfolio?
Here's how I embed videos into one of my Django projects.
I use these all the time!
Some thoughts on taking the next step to learn Django if you can't find what you're looking for in the documentation.
If you want to send emails with long text from your Django application, you don't have to store all of the text in your views. You can make your own email templates!
Updates in the big Django 3.0 release.
How to restrict button display and access to a view to only superusers in Django.
To help save you time, I want to outline some of the major differences I’ve run into while learning Django.
Time is scarce, so what will you do with your life? I chose to learn to code. Here's why.