I am following Django tutorial from django website.
There I see a regular expression like:
(regular expression, **Python callback function [, optional dictionary]**)
What I could understand is first element of the tuple is a regular expression. But I am struggling to understand part in bold in context of regular expressions and django as well.
No, the regular expression is a string. The callback function is a function to be called when the regex is matched, with the arguments given in the optional dictionary as a supplement to those parsed from the URL via the regex.