{% load static %}

You will be prompted to activate the device once you click "create".

{% csrf_token %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} {{ form.code.as_hidden }}