itemKey, use SITE_CONFIG to define json config

This commit is contained in:
j 2011-01-24 15:08:46 +05:30
commit 4a8828a817
7 changed files with 427 additions and 82 deletions

View file

@ -58,7 +58,7 @@ def init(request):
response['data']['user'] = {'name': 'Guest',
'group': 'guest',
'preferences': {}}
with open(os.path.join(settings.PROJECT_ROOT, 'templates', 'site.json')) as f:
with open(settings.SITE_CONFIG) as f:
response['data']['config'] = json.load(f)
response['data']['config']['site']['id'] = settings.SITEID
response['data']['config']['site']['name'] = settings.SITENAME