23 posts
A quick look at providing a custom HTML template for ModelForm to use for fields you choose.
DjangoUsing luminance to get contrasting foreground colors for the user-selectable background.
DjangoCreating file download links with the help of a FileResponse.
DjangoLightweight emails without Celery. And without a request-response cycle.
DjangoQuick look at setting up RSS feed that takes a parameter.
DjangoI have recently discovered the power of Django Waffle. This is the quickstart tutorial I wish I had.
DjangoSince Django 3.2 there is a way to handle big pagination with large number of pages.
DjangoA short story about serious server issue caused by super minor thing.
DjangoDjango Gems
With a single line you can save yourself the trouble of filling in the slug manually.
DjangoDjango Rest Framework
Just a short look what is possible with Django Rest Framework.
DjangoMy notes for smoother working with this model field. Saving using model forms, Image, deleting and resizing.
DjangoThe easiest way to have local instance of PostgreSQL on your macOS system available for your Django projects.
DjangoDjango Gems
Turns out Django offers great way to truncate text. Lets see how to use the built-in util Truncator.
DjangoThis post details how I solved displaying random banner on this very site. The solution does not have any prerequisites.
DjangoSince settings.py is just an ordinary Python file we can use simple `if else` block.
DjangoShort post about rendering for example 1/4, 1/2 and other fractions in your Django template. Turns out this is not complicated if you know about important parts to combine.
DjangoPresenting my solution which I arrived at with trial & error in hopes it could save time to someone.
DjangoDjango Rest Framework
My solution for account registration with DRF.
DjangoUsing Base64 might be useful in some scenarios.
DjangoDjango Rest Framework
My solution I decided to write up to have reference in the future.
DjangoI needed to preserver order of table elements and decided to share my solution.
Django