| web | https://fundor333.com/tags/django/ |
|---|---|
| Author |
Feb. 28, 2022 » Django on Fundor333 » [Archived Version]
Sometime you need to print a pdf from your site or your web app with some custom data. In Python you can make pdf with ReportLab12 and some other module but I LOVE ReportLab3. What do I need? You only need Django and ReportLab pip install django pip install reportlab Write the pdf When you have the requirements you can write the code for the pdf. For example this is a example of a class for printing A6 pdf
Read MoreFeb. 22, 2022 » Django on Fundor333 » [Archived Version]
For work I need to implement a strange usercase: I need to have a form with QRCode and BarCode input. The short story: I need to read the info from a BarCode and find the book. The long story: I need to read the barcode with a phone/tablet/something with a camera and post it in a django form. So I search on the web and find some solution. The premium solution First solution I found is a premium solution. I find the Dynamsoft ’s tutorial where you can build a script for read QrCode, Bar…
Read MoreJune 26, 2020 » Django on Fundor333 » [Archived Version]
More time pass more time I need a server for my cronjob and other process. Sometime the cron was a supid thing, working only for the short period and after can be trashed but the real problem start with Feedly, the subscription for feed I use. One day, adding a new feed to my Feedly account, I discovered that I can’t add more in the free subscription. So I start thinking some alternative.
Read MoreMay 20, 2020 » Django on Fundor333 » [Archived Version]
Sometime you need to import “old data” or other type of stuff from an Excel file into your Django and save it in the correct models. This an impossible task without the correct plugin and you need the correct one. I use the pyexcel and pyexcel-xls module for this work. PyExcel is a module where you can import multiple type of file (in our case xls with pyexcel-xls) with one common interface for all the type of files. So, with some editing, you can use this following code not only for xls but fo…
Read MoreApril 23, 2019 » Django on Fundor333 » [Archived Version]
I need to have a massive put in my rest endpoint and Django Rest Framework doesn’t do it. So I make my personal method for mycase. Setup fo the project You need to follow the tutorial from the official documentation of Django Rest Framework . After this you have a MyModel, MyModelSerializer and a view class MyModelListPost. Why I can’t use the default? After you did the tutorial you have a base for a standard Django Rest Framework. This mean that you have only a get massive not an u…
Read More