It's about passing values from URL to view in django.
URL like this: http:///boards/?board=picture&board=girls
I want get both values "picture" and "girls" that all belongs to board. Store these values to a list or something.
Obviously, request.GET.get('board') can't get two values.
Does anybody get a workaround? Thank you in advance.
It's request.GET.getlist('board')
- it's stated in the Django docs at https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.QueryDict
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With