Created
February 14, 2018 22:14
-
-
Save dmytrostriletskyi/b8dbd2b56130332081475e32cdf52c16 to your computer and use it in GitHub Desktop.
An example of using generated widget with view's context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def callback(request): | |
telegram_login_widget = create_callback_login_widget(bot_name, size=SMALL) | |
context = {'telegram_login_widget': telegram_login_widget} | |
return render(request, 'telegram_auth/callback.html', context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment