itemKey, use SITE_CONFIG to define json config
This commit is contained in:
parent
0febdc53b1
commit
4a8828a817
7 changed files with 427 additions and 82 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue