Skip to content

Instantly share code, notes, and snippets.

@taranjeet
Created February 1, 2020 11:28
Show Gist options
  • Save taranjeet/d4e961c73359c51b89b3c3fc8c5fe473 to your computer and use it in GitHub Desktop.
Save taranjeet/d4e961c73359c51b89b3c3fc8c5fe473 to your computer and use it in GitHub Desktop.
# logindemo/views.py
from django.conf import settings
from django.shortcuts import render
def render_login_page(request):
template_name = 'logindemo/index.html'
context = {}
context['app_id'] = settings.ACCOUNT_KIT_APP_ID
context['api_version'] = settings.ACCOUNT_KIT_API_VERSION
return render(request, template_name, context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment