Updates for making Evennia compatible with Django 1.8+. Still not fully functioning.
This commit is contained in:
parent
1bb886de03
commit
ee1ec3979c
7 changed files with 8 additions and 17 deletions
|
|
@ -454,6 +454,8 @@ def check_database():
|
|||
# Check so a database exists and is accessible
|
||||
from django.db import connection
|
||||
tables = connection.introspection.get_table_list(connection.cursor())
|
||||
if not isinstance(tables, basestring): # django 1.8+
|
||||
tables = [tableinfo.name for tableinfo in tables]
|
||||
if tables and u'players_playerdb' in tables:
|
||||
# database exists and seems set up. Initialize evennia.
|
||||
import evennia
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue