fix some minor issues found by pycharm code checker

This commit is contained in:
Thomas Waldmann 2013-12-15 18:05:19 +01:00
parent 271666876d
commit 758a38f95e
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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.":