Python Javascript Problem While Converting Into Django

Python Javascript Problem While Converting Into Django