send back to the template the correct api url corresponding to the current exposition
--- a/server/ammicosrv/ammico/views.py Wed Jul 08 17:59:04 2015 +0200
+++ b/server/ammicosrv/ammico/views.py Thu Jul 16 15:14:27 2015 +0200
@@ -94,7 +94,7 @@
'token': key,
'idExpo': idExpo,
'ammicoUrl': request.build_absolute_uri(reverse('ammico:api-root')),
- 'searchUrl': settings.URL_EXALEAD
+ 'searchUrl': Exposition.objects.get(id=idExpo).url_exalead
}
return render(request, 'indexAmmico.html', {'context': context})
else: