In Django’s urls.py, I know that you can specify an optional parameter to pass to a view for a single url() object. My question is, is it possible to specify the same optional parameter and have it apply to every single url() inside a patterns() object.
Share
I don’t think so, but you can simply use a variable:
If you want to be able to add values to some urls on the fly, you can do the following:
Or alternatively you can write your own
urlwrapper: