mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 06:57:16 +02:00
Fixed an AttributeError on website and a deprecationwarning for middleware relocation.
This commit is contained in:
parent
b8b1f276d7
commit
9ed8e92c71
2 changed files with 6 additions and 6 deletions
|
|
@ -11,11 +11,11 @@ from django.conf.urls import url, include
|
|||
from django.contrib import admin
|
||||
from django.views.generic import RedirectView
|
||||
|
||||
# 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()
|
||||
## 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 in each such app (this will add those
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue