I want to create a regex that matches urls like this
filmslist?name=allaboutmymother?director=pedroalmodovar
in urlpatterns, I've put this:
path('api/filmslist\?name=?P<name>(.*)\?director=?P<director>(.*)', views.filmslist)
but it doesn't match. Thanks in advance
api/filmslistshould be enough, everything from?onwards is a querystring (GET parameters)(?P<some_cool_name>...). That said, it should befilmslist\?name=(?P<name>.*)\?director=(?P<director>.*), see regex101.com/r/eLfjsX/1?s in the URL?