if request.method == 'POST':
    form = authentication_form(request, data=request.POST)
if form.is_valid():
    if not is_safe_url(url=redirect_to, host=request.get_host()):
        pass
Django application deployed at suburl, redirect to home page after login