'Sentry URL with private key removed for use in client side scripts,
sentry server will need to be configured to accept events'

@property
def sentry_dsn_public(self):

    if self.sentry_dsn:
        return re.sub('^([^:/?#]+:)?//(\\w+):(\\w+)', '\\1//\\2', self.sentry_dsn)
    else:
        return None
