Fixed many path-related issues, getting closing to getting the server to boot.

This commit is contained in:
Griatch 2015-01-08 16:00:22 +01:00
parent 0c9bf08c5a
commit 33a42d06c5
15 changed files with 130 additions and 75 deletions

View file

@ -70,8 +70,9 @@ many traits with a normal goblin.
"""
import os, sys, copy
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
os.environ['DJANGO_SETTINGS_MODULE'] = 'game.settings'
#TODO
#sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
#os.environ['DJANGO_SETTINGS_MODULE'] = 'game.settings'
from django.conf import settings
from random import randint