Tag « urls »
Using uuids in URLs in a Django app
After adding a regexp for uuids (which are quite hard to regexp for), I discovered that Django offers path converters, making this a piece of cake.
I was using old school re_path
paths in my urls.py
, but it’s possible to
replace them with path
, like this:
url_patterns = (
path …