Custom Django Python Migration
A quick outline of how to create a custom migration in Django.
A quick outline of how to create a custom migration in Django.
A by-no-means-comprehensive list of notes from DjangoCon US 2024.
You can add your own custom logic to your model deletion and provide helpful messages to the user in the Django admin.
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.
Store Django queries as JSON objects
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 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 …
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 …
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 …
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.
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.