def version(request): """ Adds static-related context variables to the context. """ version = get_version() if version: commit = version['commit'] return {'long_sha1': commit, 'short_sha1': commit[:7]} return {}
def RAVEN_CONFIG(self): config = { 'dsn': self.SENTRY_DSN, 'transport': RequestsHTTPTransport, } from atmo import health version = health.get_version() if version: config['release'] = version['version'] or version['commit'] return config
def version(request): """ Adds static-related context variables to the context. """ version = get_version() if version: commit = version['commit'] return { 'long_sha1': commit, 'short_sha1': commit[:7] } return {}