Re: How to extract a number from a url

2018-12-05 Thread Pankaj Kumar
Try using regular expression (?P[0-9]+) similar to this: url(r'^music/(?P[0-9]+)/newsongs$', views.your_view_function()) cheers! On 12/6/18, Sourajit Mohanty wrote: > I am working with Class based Views..so I dont think this is gonna work > > On Thu 6 Dec, 2018, 2:33 AM shiva kumar wrote: >

RE: Best way to structure this Django project

2018-12-03 Thread Pankaj Kumar
Thats a valid workflow in my opinion. Many Django works take that approach. But alternatively, if you want you can pass the product info as parameters in the Payment app while redirecting and can have a model in the Payment app to capture and integrate product and payment parameters together. That