added compatibility with django–constance, fixed #342