https://github.com/zokis/template-gen-qr
Projeto de templatetag Django para geração de Qr Codes em base64
https://github.com/zokis/template-gen-qr
Last synced: about 1 year ago
JSON representation
Projeto de templatetag Django para geração de Qr Codes em base64
- Host: GitHub
- URL: https://github.com/zokis/template-gen-qr
- Owner: zokis
- License: wtfpl
- Created: 2013-06-14T18:34:56.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-02T19:24:01.000Z (about 13 years ago)
- Last Synced: 2025-02-16T11:27:25.733Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
template-gen-qr
===============
Projeto de templatetag Django para geração de Qr Codes em base64
required: https://github.com/lincolnloop/python-qrcode
Usando em Templates
-------------------
```html
{% load qr_tags %}
{% qr_from_mail 'zokis@example.com' %}
{% qr_from_text 'Texto!!' %}
```
Usando o MECARD:
```python
def gen_qr(request):
contato = {
'url': 'http://www.znc.com.br',
'tel': '000666',
'name': 'Marcelo Tambalo',
'email': 'zokis@example.com',
'nick': 'Zokis'
}
return render(request, 'app/template.html', {'contato': contato})
```
```html
{% load qr_tags %}
{% qr_from_contact contato %}
```
