Start by adding qr_code to your INSTALLED_APPS setting like this:
INSTALLED_APPS = (
# ...,
'qr_code',
)
You need to load the tags provided by this app in your template with:
{% load qr_code %}
The source code on GitHub contains a simple demo app. Please check out the templates folder for an example of template, and the setting and urls files for an example of configuration and integration.
If you have Docker Compose installed, you can simply run the following from a terminal (this will save you the burden of setting up a proper python environment):
If you do not want to use Django tags for rendering QR code in a template, you can simply use the API in your code. For instance, qr_code.qrcode.maker.make_qr_code_image will return bytes representing an image according to the image_format passed in the qr_code_options parameter.
This will run the test suite with the locally installed version of Python and Django.
If you have Docker Compose installed, you can simply run the following from a terminal (this will save you the burden of setting up a proper python environment):
cd scripts
./run-tests.sh
This will run the test suite with all supported versions of Python and Django. The test results are stored within tests_result folder.
Projects Using this App
This app is used in the following projects:
MyGym Web: a web platform for managing sports clubs. The QR codes are used for importing members' contact information in a phone book.
Gymna-Score: a web platform for entering scores during gymnastics competitions organized by the Association Cantonale Jurassienne de Gymnastique (ACJG). The QR codes are used to provide an easy way for the public to follow an ongoing competition. They are also used to authenticate judges that need to enter scores.
AC-Ju: a website that generates digital vouchers that can be redeemed at affiliate merchants.
Works well with
Use together with django-qr-code: extensions, drivers, servers and companion tools.
DjangoPythie’s Index: 91A high-level Python web framework that encourages rapid development and clean, pragmatic design.52.8M downloads/mo