Closed gtnx closed 7 years ago
just for curiosity, what's your usecase?
Defining WS4REDIS_PROCESS_REQUEST
directly with the function in the settings.py
may require some import from django modules. If the function is defined in a models.py
file, this would aise a django.core.exceptions.AppRegistryNotReady
. You have many ways to solve this: defining it another file, modify the settings after the app are loaded but this seemed to me pretty simple and "django-compliant".
refs #232
If WS4REDIS_PROCESS_REQUEST, the string is considered as a path and
django.utils.module_loading.import_string
(orimport_by_path
for older version) is used to do so.