fix config

This commit is contained in:
j 2011-09-16 18:45:25 +02:00
commit 6a6ba425bb
3 changed files with 33 additions and 18 deletions

View file

@ -120,9 +120,9 @@ INSTALLED_APPS = (
'devserver',
# 'south',
'djcelery',
'app',
'annotation',
'app',
'archive',
'event',
'item',
@ -245,3 +245,16 @@ except NameError:
except IOError:
Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE)
from ox.utils import json
with open(SITE_CONFIG) as f:
CONFIG = json.load(f)
CONFIG['site']['id'] = SITEID
CONFIG['site']['name'] = SITENAME
CONFIG['site']['sectionName'] = SITENAME
CONFIG['site']['url'] = URL
CONFIG['keys'] = {}
for key in CONFIG['itemKeys']:
CONFIG['keys'][key['id']] = key