Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

Commit

Permalink
fixed the endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslara committed Jan 22, 2015
1 parent 16223ad commit 1b5955c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion botbot/static/js/app/glob/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ $$.Views.Glob = Backbone.View.extend({
$(document).ready(function () {
v = new $$.Views.Glob({
el: $('#Glob'),
source: 'http://localhost:3000/push/glob'
source: $('#Glob').data('source')
})
})
2 changes: 1 addition & 1 deletion botbot/templates/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>

<body>
<div id="Glob"></div>
<div id="Glob" data-source="{{ source }}"></div>


{% assets filters="yui_js", output="gen/vendor.js", "js/vendor/andlog.js", "js/vendor/jquery-1.8.2.js", "js/vendor/bootstrap.js", "js/vendor/moment.js", "js/vendor/detect_timezone.js", "js/vendor/jquery.highlight.js", "js/vendor/waypoints.js", "js/vendor/underscore.js", "js/vendor/backbone.js" "js/vendor/d3.v3.min.js" "js/vendor/topojson.v1.min.js" %}
Expand Down
2 changes: 1 addition & 1 deletion botbot/urls/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
url(r'^request/success/$', 'django.shortcuts.render',
{'template_name': 'bots/request_success.html'}, name='request_channel_success'),
url(r'^map/$', 'django.shortcuts.render',
{'template_name': 'map.html', 'dictionary': {'source': settings.SSE_ENDPOINT}} ,
{'template_name': 'map.html', 'dictionary': {'source': settings.SSE_ENDPOINT.format(token='glob')}} ,
name='realtime_map'),

(r'^settings/', include('botbot.apps.accounts.urls')),
Expand Down

0 comments on commit 1b5955c

Please sign in to comment.