Django redirect to `tel` url yields `SuspiciousOperation` -
i'm writing little website logs when users click on link (which telephone number). through view, redirects telephone number.
naturally, (i agree should default behavior) django sees suspiciousoperation
. in case, i'm doing intentionally. how can suppress error , let view resolve want to?
in root of app redirects tel: uris:
from django.http import httpresponseredirectbase httpresponseredirectbase.allowed_schemes += ['tel']
Comments
Post a Comment