I want to make the arguments i pass through the urls as optional.
url(r'^dashboard/forms/(\w+)|/create/$','dashboard_message_create'),
url(r'^dashboard/forms/(\w+)/delete/$', 'delete'),
The problem with using “|” is that django cannot distinguish between the above 2 urls.
I am new to django . So any pointers in this direction will be very useful. Thanks in advance
You can try associating both with the same view
Then, make sure
dashboard_message_createworks without the argument