Made Evennia run with Django 1.9

This commit is contained in:
Griatch 2016-02-18 10:12:42 +01:00
parent ba1f10e88f
commit e6a866a150
7 changed files with 11 additions and 32 deletions

View file

@ -16,7 +16,7 @@ from twisted.internet.reactor import callFromThread
from django.core.exceptions import ObjectDoesNotExist, FieldError
from django.db.models.signals import post_save
from django.db.models.base import Model, ModelBase
from django.db.models.signals import pre_delete, post_syncdb
from django.db.models.signals import pre_delete, post_migrate
from evennia.utils import logger
from evennia.utils.utils import dbref, get_evennia_pids, to_str
@ -446,7 +446,7 @@ def flush_cache(**kwargs):
# run the python garbage collector
return gc.collect()
#request_finished.connect(flush_cache)
post_syncdb.connect(flush_cache)
post_migrate.connect(flush_cache)
def flush_cached_instance(sender, instance, **kwargs):