diff --git a/src/web/urls.py b/src/web/urls.py index 4393644547..067f52a0d1 100755 --- a/src/web/urls.py +++ b/src/web/urls.py @@ -10,8 +10,14 @@ from django.conf.urls.defaults import * from django.conf import settings from django.contrib import admin +# fix to resolve lazy-loading bug +# https://code.djangoproject.com/ticket/10405#comment:11 +from django.db.models.loading import cache as model_cache +if not model_cache.loaded: + model_cache.get_models() + # loop over all settings.INSTALLED_APPS and execute code in -# files named admin.py ine each such app (this will add those +# files named admin.py in each such app (this will add those # models to the admin site) admin.autodiscover()