{% load i18n %} {% load utils %} var {{ spk }}Attach = function($form) {}; (function() { {{ spk }}Attach = function($form) { console.log('local'); }; }());