Turned off Django DEBUG in the default setup. This resolves all issues with memory leakage and resource hogging seen in issue112.
This commit is contained in:
parent
12acb34ce7
commit
151595a042
4 changed files with 18 additions and 15 deletions
|
|
@ -10,6 +10,7 @@ from src.server import sessionhandler
|
|||
from src.players.models import PlayerDB
|
||||
from src.scripts.models import ScriptDB
|
||||
from src.objects.models import ObjectDB
|
||||
from src.config.models import ConfigValue
|
||||
from src.permissions.models import PermissionGroup
|
||||
from src.utils import reloads, create, logger, utils
|
||||
from src.permissions.permissions import has_perm, has_perm_string
|
||||
|
|
@ -92,11 +93,13 @@ class CmdPy(MuxCommand):
|
|||
'testscript')
|
||||
obj = create.create_object("src.objects.objects.Object",
|
||||
'testobject')
|
||||
conf = ConfigValue() # used to access conf values
|
||||
available_vars = {'self':caller,
|
||||
'me':caller,
|
||||
'here':caller.location,
|
||||
'obj':obj,
|
||||
'script':script}
|
||||
'script':script,
|
||||
'config':conf}
|
||||
caller.msg(">>> %s" % pycode)
|
||||
try:
|
||||
ret = eval(pycode, {}, available_vars)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue