I would use a custom method decorator to return your login response if the user is not yet logged in. Something like this:
# decorators.py
from django.http import HttpResponse
def check_login(view):
def wrap(request, *args, **kwargs):
if not request.user.is_authenticated():
return HTTPResponse("Load_Login_Form")
return view(request, *args, **kwargs)
return wrap
Then you simply import that to your views file and add it before each view that you want to protect
# views.py
from django.http import HttpResponse
from .decorators import check_login
@check_login
def ok_view(request):
return HttpResponse("OK")