In order to create a constant in Django, we have to open the file and then a variable has to be added into it, for example: MY_CONST = "MY_VALUE". In order to utilize it constantly in views you just have to import the settings "import settings in" and use it- Settings.MY_CONST

BY Best Interview Question ON 19 Sep 2019