fix config
This commit is contained in:
parent
131fe30a58
commit
6a6ba425bb
3 changed files with 33 additions and 18 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue