Minimal qr reader implementation

This commit is contained in:
jbdoderlein 2024-08-21 10:47:49 +00:00
parent 1868dedad6
commit a8a2dd3f60
3 changed files with 51 additions and 2 deletions

View file

@ -220,8 +220,8 @@ MEDIA_URL = '/media/'
# Use mailer in production to place emails in a queue before sending them to avoid spam
EMAIL_BACKEND = 'mailer.backend.DbBackend'
MAILER_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_SSL = os.getenv('EMAIL_USE_SSL', False)
EMAIL_USE_TLS = os.getenv('EMAIL_USE_TLS', True)
EMAIL_USE_SSL = (os.getenv('EMAIL_USE_SSL', "False")=="True")
EMAIL_USE_TLS = (os.getenv('EMAIL_USE_TLS', "True")=="True")
EMAIL_HOST = os.getenv('EMAIL_HOST', 'smtp.example.org')
EMAIL_PORT = os.getenv('EMAIL_PORT', 587)
EMAIL_HOST_USER = os.getenv('EMAIL_USER', None)

View file

@ -36,6 +36,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<script src="{% static "js/turbolinks.js" %}"></script>
<script src="{% static "js/base.js" %}"></script>
<script src="{% static "js/konami.js" %}"></script>
<script src="https://unpkg.com/html5-qrcode" type="text/javascript"></script>
{# Translation in javascript files #}
<script src="{% static "js/jsi18n/"|add:LANGUAGE_CODE|add:".js" %}"></script>