In Django versions >1.9 initializing storage on application load raises
django.core.exceptions.AppRegistryNotReady when using PDDatabaseStorage storage
class.
This patch makes the initialization happen on first request to product details.
Requests should happen after Django has finished initializing.
In Django versions >1.9 initializing storage on application load raises django.core.exceptions.AppRegistryNotReady when using PDDatabaseStorage storage class.
This patch makes the initialization happen on first request to product details. Requests should happen after Django has finished initializing.