{% if app_name and code %}

Permission granted to application {{ app_name }}!.
Your authorization code: {% comment %}In order to complete the full authentication process the application will require you to introduce the following authorization code:{% endcomment %}

{{ code }}
{% comment %}

(logged in as {{ request.user }}, login as another user).

{% endcomment %} {% else %}

Access has been denied.

{% comment %}

In case you clicked on "Authorize!" some errors might have occurred. You should probably start again the authorization process from the 3rd party application!

{% endcomment %} {% endif %}