Django has excellent URLConf and URL reverse mapping/matching. I’m looking for a tip/trick to add arbitrary extensions to URLs generated by Django. Sometimes it’s nice to see extensions that suggest your brand.
Django has excellent URLConf and URL reverse mapping/matching. I’m looking for a tip/trick to
Share
OK, let’s assume I want to publish some documents which are available in HTML, PDF, DOC, etc formats. The pattern in urlconf would look like this:
and the view: