diff --git a/CHANGES.rst b/CHANGES.rst index e25c696..9fc3e03 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -19,6 +19,7 @@ Other changes: # alternatively: from nsupdate.settings.prod import * # for production # after that, override whatever you need to override. + * improved docs about a sane settings setup * document postgreSQL setup * also support Python 2.6.x diff --git a/nsupdate/main/templates/main/update.html b/nsupdate/main/templates/main/update.html index e3be26d..97e0d62 100644 --- a/nsupdate/main/templates/main/update.html +++ b/nsupdate/main/templates/main/update.html @@ -38,14 +38,14 @@ } function now_str() { - dt = new Date(); + var dt = new Date(); return format_dt(dt); } function checkIP() { $.get("{% url 'myip' %}") .done(function( data ) { - ip = data; + var ip = data; $('#myip').text(ip); $('#myip_timestamp').text(now_str()); if(ip != last_ip) { diff --git a/nsupdate/main/views.py b/nsupdate/main/views.py index 006034b..775bd16 100644 --- a/nsupdate/main/views.py +++ b/nsupdate/main/views.py @@ -463,6 +463,7 @@ def csrf_failure_view(request, reason): Django's CSRF middleware's builtin view doesn't tell the user that he needs to have cookies enabled. :param request: django request object + :param reason: why the csrf check failed :return: HttpResponse object """ if reason == "CSRF cookie not set.":