I want to send multiple parameters through a URL with Django. Typically I could do something like below:
url(r'^example/(?P<param1>[\w|\W]+)/(?P<param2>[\w|\W]+)/(?P<param3>[\w|\W]+)/$', views.example, name='example')
The problem is that my 3 parameters can include any characters including "/", so if param1 is say a URL itself, then it will mess up the other parameters for if the following paramters are passed:
param1 = "http://cnn.com", param2 = "red", and param3 = "22"
Django will interpret param2 as beginning after the 2nd dash in http://cnn.com. Any idea what the best way to resolve this is?
Thank You!