mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 13:49:40 +00:00
Merge pull request #98 from KiwiTechLLC/sprint3
add print in junior list
This commit is contained in:
@ -97,10 +97,19 @@ class JuniorListAPIView(viewsets.ModelViewSet):
|
||||
|
||||
def list(self, request, *args, **kwargs):
|
||||
""" junior list"""
|
||||
print("self.request.META====>",self.request.META)
|
||||
print()
|
||||
auth_token = self.request.META['HTTP_AUTHORIZATION']
|
||||
headers_token = {
|
||||
'Authorization': auth_token
|
||||
}
|
||||
print("auth_token====>", auth_token)
|
||||
print("headers_token====>", headers_token)
|
||||
print("os.getenv('BASE_URL')===>", os.getenv('BASE_URL'))
|
||||
print("url====>", os.getenv('BASE_URL') + '/api/v1/top-junior/')
|
||||
url = requests.get(os.getenv('BASE_URL') + '/api/v1/top-junior/', headers=headers_token)
|
||||
print("url data====>",url)
|
||||
|
||||
requests.get(os.getenv('BASE_URL') + '/api/v1/top-junior/', headers=headers_token)
|
||||
guardian_data = Guardian.objects.filter(user__email=request.user).last()
|
||||
# fetch junior object
|
||||
|
Reference in New Issue
Block a user