Solve 500 error caused by markup, which has been removed in Django 1.6.