mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 02:06:32 +01:00
Migration needed. Refactored the config.configValue model into server.ServerConfig (that's what the config model were used for anyway). The new model can handle arbitrary data structures through pickle. Run ./manage.py migrate to sync your database with the new setup.
Moved Connect screens (the text screen first seen when connecting) away from the database and into a module in gamesrc/world. This module allows for conveniently adding new connect screens on the fly. More than one screen in the given module will mean a random screen is used.
This commit is contained in:
parent
f1404356ea
commit
7f9f21f45e
21 changed files with 162 additions and 257 deletions
|
|
@ -21,7 +21,7 @@ from twisted.web import server, static
|
|||
from django.db import connection
|
||||
from django.conf import settings
|
||||
from src.utils import reloads
|
||||
from src.config.models import ConfigValue
|
||||
from src.server.models import ServerConfig
|
||||
from src.server.sessionhandler import SESSIONS
|
||||
from src.server import initial_setup
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ class Evennia(object):
|
|||
This attempts to run the initial_setup script of the server.
|
||||
It returns if this is not the first time the server starts.
|
||||
"""
|
||||
last_initial_setup_step = ConfigValue.objects.conf('last_initial_setup_step')
|
||||
last_initial_setup_step = ServerConfig.objects.conf('last_initial_setup_step')
|
||||
if not last_initial_setup_step:
|
||||
# None is only returned if the config does not exist,
|
||||
# i.e. this is an empty DB that needs populating.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue