def send_verification_email(cls, request, to_email, code): absolute_apk_url = request.build_absolute_uri(get_apk_url()) subject = 'Verify your account for MHRD Link' message = """ Hello, To verify your account, copy paste the following code into verification panel. %s Download our Android application from %s and use this code to register your account. If you got this mail by error, please ignore it! Regards, Team MHRD Link """ % (code, absolute_apk_url) send_mail(subject, message, '*****@*****.**', [to_email])
def index(request): return render_to_response('index.html', {'APK_URL': get_apk_url()})