Blog: Django on Fundor333

Django Table, Filter and Export With Htmx

April 3, 2026 » Django on Fundor333 » [Archived Version]

Some time ago I wrote a blog post about Htmx and Django-table2 and all went well… No he didn’t work as I wanted so I did some editing of the code here and there. The old one We start with the code I didn’t change: First the model # blog/model.py class Post(models.Model): title = models.CharField(max_length=400) slug = models.SlugField(max_length=400, unique=True, blank=True) content = models.TextAreaField() date = models.DateTimeField(auto_now_add=True)The table

Read More

Htmx Django and Django Table2

Jan. 19, 2026 » Django on Fundor333 » [Archived Version]

For some time I am developing my personal Django server. It keeps some data for me and it is my automation server. And I want to test a Htmx code on Django so I make a little thing in my personal django project. What I have I have a MonthArchiveView with render a table list with a lot of function I need: add element, change month show, exports query as files, etc…

Read More

Pocket Is Dead

June 18, 2025 » Django on Fundor333 » [Archived Version]

Pocket is dead and in the next few days they will be delete forever. So I wrote my Django app for this (my personal Pocket) but if you are note a coder or you don’t want to support this code you can use other software. I suggest Shiori (https://github.com/go-shiori/shiori   ) with PikaPods (https://www.pikapods.com/   ) as hosting. This is not sponsored by anyone but a real dev who had a problem and fixs it

Read More

Django Response

June 15, 2025 » Django on Fundor333 » [Archived Version]

Thanks and i like the new querystring tag

Read More

Add Minor Things to Django for templating

June 15, 2025 » Django on Fundor333 » [Archived Version]

More and more time I need some little thing for templating: The date fild of a form with the right input type for the page A link with all the get parameters of the current page (form, paginator, etc…) and one added The Code This little code is mine but you can use it on all your project without thinking. If you find an error comment or webmention or replay with activity pub to my toot

Read More

Django Webring

May 23, 2025 » Django on Fundor333 » [Archived Version]

And now I am into the #djangowebring … It is a April Fool’s Day joke ? Maybe but Flask was also a April Fool’s Day joke…

Read More

Django Generate Barcode With Reportlab

May 19, 2025 » Django on Fundor333 » [Archived Version]

After Django With Barcode and Qrcode   and Django Return Pdf With Reportlab   I need something new in my Django server. I need a barcode generator for labeling stuffs. The problem Every code is a solution to a pratical problem. In this case I need to make the barcode labels with text for keep an inventory. The basic solution is generate a pdf/img file to print into sticker’s paper and cut it after.

Read More

Csv From Django

April 18, 2025 » Django on Fundor333 » [Archived Version]

Some time you need to export a file into a specific format for some use like upload to the old system. In this case I need to have a CSV file which another software fill. The code I wrote a ClassView for this case, this class. 1 class CsvCarsDownload(View): def get(self, request, *args, **kwargs): response = HttpResponse(content_type="text/csv") response["Content-Disposition"] = 'attachment; filename="cars.csv"' my_dict = [{ "brand": "Ford", "model": "Mustang", "year": 1964 }] wri…

Read More

Message and Allert With Django and Boostrap

May 2, 2022 » Django on Fundor333 » [Archived Version]

Sometime you need to send an allert/message from your Django project to the user, like a popup or a gui message for an user interaction (“Sent the mail”, “Done the task”, …) and you want to make it with style (Boostrap in this case). So this is my code. Basic setup settings.py Check if in the settings you have: django.contrib.messages is in INSTALLED_APPS django.contrib.sessions.middleware.SessionMiddleware and django.contrib.messages.middleware.MessageMiddleware are in MIDDLEWARE The con…

Read More

Django List View With Show More

April 23, 2022 » Django on Fundor333 » [Archived Version]

Sometime you want to have infinite scrolling in a Django ListView. And there are good post about this topic on the internet like this one   but nothing about infinite scrolling with filters. Basic setup In this tutorial I assume you have a Product django model and a class view like this: model.py from django.db import model class Product(models.Model): title = models.CharField(max_length=250) description = models.TextField() def __str__(self): return self.title views.py from…

Read More