from models import Config
from sawo import getContext
def <your_function>(request):
config = Config.objects.order_by('-api_key')[:1]
"sawo" = getContext(config,<route>) #the route where you will recieve
config = Config.objects.order_by('-api_key')[:1]
"sawo" = getContext(config,"login")