My repo of Today I Learned posts. Inspired by simonw/til.
- AWS S3 and Boto3 Cheat Sheet - 2024-03-18
- Adding a custom field to the Django admin list display - 2024-03-18
- Adding a custom tag with
django-taggit
- 2022-11-09 - Adding ability to search in the Django Admin - 2024-03-18
- Adding extra fields to the list view in the Django Admin - 2024-03-18
- Adding filtering functionality to the Django Admin - 2024-03-18
- Caching in Django Projects - 2023-04-19
- Finding out how many objects have N connections to the other model in a M2M relationship - 2024-02-28
- Finding the longest value of a particular field - 2024-02-28
- Handling 404 Responses in Django - 2023-04-19
- How I added a very simple django-streamfield example to a project - 2024-03-18
- How to confirm that login is required in your Django view - 2023-02-22
- How to log in a test user in a
pytest
unit test - 2023-02-22 - How to test a file upload with
pytest
andSimpleUploadedFile
- 2023-02-22 - Testing Django signals, and disabling signals in tests (Django 2.2) - 2020-07-27
- Using
Coalesce
to provide a default value foraggregate
queries - 2021-02-18 - Using
defer()
to limit the data you get from your models - 2022-10-19 - Using Django Aggregation - 2021-01-22
- Using Enums in a Django Model ChoiceField (Django 2.2) - 2020-05-26
- Why won't my Django file URLs come back signed from S3? - 2021-01-08
- Adding a custom pagination class to an action - 2022-10-25
- Passing extra info in
context
to your DRF serializer - 2021-01-22
- How to document your query parameters for
drf_yasg
- 2021-01-28 - How to properly serialize a
serializer_method_field
withdrf_yasg
- 2021-01-28 - How to serialize your request parameters for POST/PUT/PATCH requests - 2021-01-28
- Commenting on an issue from a GitHub Action - 2022-11-04
- Creating a new file and committing it using a GitHub Action - 2022-11-04
- Github Action that leaves a comment on new PRs or issues - 2022-10-28
- How to use a Github Action - 2020-05-26
- Making one job in a workflow depend on another job - 2022-11-04
- Parsing JSON output from a GitHub Issue template in a GitHub Action - 2022-11-04
- Running an action conditionally - 2022-11-04
- Setting output for a step in a job, so a different job can use it - 2022-11-04
- Temporarily disabling a GitHub action without touching the workflow file - 2022-11-07
- Using Google Cloud Service Accounts and authenticating as a dictionary (without the json file) in a Django project - 2024-03-01
- Making a collapsible markdown section - 2022-11-05
- Relume Design League - competitive web design - 2022-11-05
- Test that an exception is raised - 2023-03-02
- ChatGPT-4 distills the Python
mailbox
docs for me. - 2023-04-24 - Create a new Python virtual environment - 2022-10-14
- Generate a markdown file with a table of contents in Python - 2022-10-28
- How to sort a Python dictionary by key or value - 2021-02-02
- How to sort a Python dictionary by multiple values - 2021-02-02
taylor
: The Taylor Swift / R Project - 2023-04-21- How to convert an
.rda
file to JSON - 2023-04-21
- Add Wagtail to an existing Django project - 2024-02-26
- Cheat Sheet for Wagtail StreamField - 2024-02-26
- Cheat Sheet: Wagtail Page Model Fields - 2024-02-26
- Choosing Between Wagtail Page Models and Django Models - 2024-02-26
- Create a Custom Nested Block for Wagtail StreamField - 2024-02-26
- Creating Custom StreamField Blocks - 2024-02-26
- Example of linking Django models to Wagtail Page models - 2024-02-26