python
To get url param details from get request in Django
server = request.GET.get('server_info','production')
count = request.GET.get('limit_count')
user_id = request.GET.get('user_id')
customer_id = request.GET.get('alie_customer_id',None)
studio_id = request.GET.get('studio_id',None)
print(count)
print(user_id)
print(customer_id)
print(studio_id)
This code gets the given the url parameters from the API and executes it as per the given commands
Was this helpful?
Similar Posts