Django need syntax to check url

please help me with a syntax on how to do this
i am importing a form from a model and with the context object name as object
now i wanna check if one of its field(that field is a textfield) is url then add it to an anchor tag else display it normally