I have learned to implement push notifications for a Web Application using chrome https://developers.google.com/web/updates/2015/03/push-notifications-on-the-open-web?hl=en
Follow this method...
sw.js
file in template
folderconfigure view to serve as static file
#urls
url(r'^sw(.*.js)$', views.sw_js, name='sw_js'),
#views
from django.views.decorators.cache import never_cache
from django.template.loader import get_template
@never_cache
def sw_js(request, js):
template = get_template('sw.js')
html = template.render()
return HttpResponse(html, content_type="application/x-javascript")