I am new to programming and django and I recently learned how to capture the url parameters
My question is I have a url something like below, how to capture the different parameters such as base,version,first_name, last_name
www.example.com/something/?base=default&version=235&first_name=darth&last_name=vader
Here is what I think is right
In views.py
def some(request):
base = request.GET.get('base')
version = request.GET.get('version')
first_name = request.GET.get('first_name')
last_name = request.GET.get('last_name ')
Am I right? Where can I read more about this.
Love to learn the best practises. Thank you