I write a Django app which should have a setting whose value is a Python function.
How to put the function into settings.py
? To use a function name I would need to import the module defining the function from settings.py
. Is it good idea to import something from settings.py
?
Any other way to specify a function?