Moving the port configuration to the settings.py file and out of the database.

This commit is contained in:
Greg Taylor 2007-05-27 22:09:06 +00:00
parent 7d869dff18
commit 2e6d4f5a00
2 changed files with 7 additions and 4 deletions

View file

@ -38,7 +38,7 @@ class EvenniaService(service.Service):
print '-'*50
# Load command aliases into memory for easy/quick access.
self.load_cmd_aliases()
self.port = gameconf.get_configvalue('site_port')
self.port = settings.GAMEPORT
if gameconf.get_configvalue('game_firstrun') == '1':
print ' Game started for the first time, setting defaults.'

View file

@ -1,5 +1,10 @@
# Django settings for evennia project.
# The port for the game to run on.
GAMEPORT = 4000
# The name of the server log file.
LOGFILE = 'logs/evennia.log'
# Django settings for evennia project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
@ -80,5 +85,3 @@ INSTALLED_APPS = (
'apps.genperms',
)
LOGFILE = 'logs/evennia.log'
GAMEPORT = 4000