🚧 Dust removal: QRcode generation on Django

Old tip needed to be actualised
This commit is contained in:
Freezed 2021-11-28 02:06:44 +01:00
parent c9b3103ac2
commit e9533e9974
1 changed files with 11 additions and 7 deletions

View File

@ -1,12 +1,12 @@
Title: Générer un QRcode dans Django
Date: 2019-07-20 23:13
Modified: 2021-11-28 02:00
Summary: Un générateur de code barre 2D dans une vue Django
Category: Bloc-notes
Tags: django, qrcode, web, dev, tdd, python
Status: Draft
Lang: fr
Tags: django, qrcode, web, dev, python
Status: Published
---
🚧 _need to be refreshed_ 🚧
```python
from base64 import b64encode
@ -67,6 +67,10 @@ class FoobarDetail(DetailView):
return context
```
http://git.mf2i.fr/fred/confluent/tree/master/candidate/views.py
https://github.com/lincolnloop/python-qrcode
https://gilang.chandrasa.com/blog/generate-qr-code-in-django-model/
---
Refs:
- Internal `candidate/views.py`
- [`lincolnloop/python-qrcode`](https://github.com/lincolnloop/python-qrcode)
- [_Generate QR Code In Django Model_](https://gilang.chandrasa.com/blog/generate-qr-code-in-django-model/) by [_Gilang Chandrasa_](https://gilang.chandrasa.com/) (16 Nov 2015)