From f1c9608ca9c22c050bd71b8fa13bfa7187f05c63 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 8 Nov 2023 11:23:53 +0100 Subject: [PATCH] add locale var in settins --- idhub/templates/idhub/admin/import_add.html | 34 +++++++++++++++++++++ trustchain_idhub/settings.py | 4 +++ 2 files changed, 38 insertions(+) create mode 100644 idhub/templates/idhub/admin/import_add.html diff --git a/idhub/templates/idhub/admin/import_add.html b/idhub/templates/idhub/admin/import_add.html new file mode 100644 index 0000000..f18821f --- /dev/null +++ b/idhub/templates/idhub/admin/import_add.html @@ -0,0 +1,34 @@ +{% extends "idhub/base_admin.html" %} +{% load i18n %} + +{% block content %} +

+ + {{ subtitle }} +

+
+
+
+ + + + + + + + + + + {% for schema in schemas.all %} + + + + + + {% endfor %} + +
{{ schema.created_at }}{{ schema.file_schema }}{% trans 'Import Dates' %}
+
+
+
+{% endblock %} diff --git a/trustchain_idhub/settings.py b/trustchain_idhub/settings.py index 93ad79b..2537456 100644 --- a/trustchain_idhub/settings.py +++ b/trustchain_idhub/settings.py @@ -178,4 +178,8 @@ MESSAGE_TAGS = { messages.ERROR: 'alert-danger', } +LOCALE_PATHS = [ + os.path.join(BASE_DIR, 'locale'), +] + AUTH_USER_MODEL = 'idhub_auth.User'