Some deprecation fixes for django1.4+. Added the ability to add lists to Attribute-stores lists using e.g. obj.db.mylist + [1,2,3,4]
This commit is contained in:
parent
c943b13351
commit
89c33a9197
7 changed files with 29 additions and 16 deletions
|
|
@ -81,10 +81,14 @@ from twisted.internet.defer import inlineCallbacks
|
|||
|
||||
# set up django, if necessary
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
|
||||
from django.core.management import setup_environ
|
||||
from game import settings
|
||||
setup_environ(settings)
|
||||
#from src.utils.utils import run_async as thread_run_async
|
||||
try:
|
||||
from django.conf import settings as settings2
|
||||
settings2.configure()
|
||||
except RuntimeError:
|
||||
pass
|
||||
finally:
|
||||
del settings2
|
||||
|
||||
_LOGGER = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue