Simple app to add configuration options to a Django project.
1from typing import Dict, Type
2
3from django.utils.translation import gettext_lazy as _
4
5FLOAT, INT, STR, FILE = (0, 1, 2, 3)
6TYPE_CHOICES = (
7 (FLOAT, _("Float")),
8 (INT, _("Integer")),
9 (STR, _("String")),
10 (FILE, _("File")),
11)
12CONVERTER: Dict[int, Type] = {INT: int, FLOAT: float, STR: str, FILE: str}