Title: Make the package a Flask extention so it can be used with init_app · Issue #24 · bloomberg/python-github-webhook · GitHub
Open Graph Title: Make the package a Flask extention so it can be used with init_app · Issue #24 · bloomberg/python-github-webhook
X Title: Make the package a Flask extention so it can be used with init_app · Issue #24 · bloomberg/python-github-webhook
Description: When making modular flask applications, it's common not to immediately provide the app in the constructor, but to pass it later on with the method init_app(app) as we can see in the documentation -- https://flask.palletsprojects.com/en/1...
Open Graph Description: When making modular flask applications, it's common not to immediately provide the app in the constructor, but to pass it later on with the method init_app(app) as we can see in the documentation -...
X Description: When making modular flask applications, it's common not to immediately provide the app in the constructor, but to pass it later on with the method init_app(app) as we can see in the documentati...
Opengraph URL: https://github.com/bloomberg/python-github-webhook/issues/24
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make the package a Flask extention so it can be used with init_app","articleBody":"When making modular flask applications, it's common not to immediately provide the app in the constructor, but to pass it later on with the method `init_app(app)` as we can see in the documentation -- https://flask.palletsprojects.com/en/1.1.x/extensions/\r\n\r\nWith a bit of changes on the constructor this can become a \"proper\" flask extension \r\nhttps://flask.palletsprojects.com/en/1.1.x/extensiondev/\r\n\r\nThe example of the SQLite extension provides an idea on how this could look like:\r\n\r\n```\r\n def __init__(self, app=None):\r\n self.app = app\r\n if app is not None:\r\n self.init_app(app)\r\n\r\n def init_app(self, app):\r\n app.config.setdefault('SQLITE3_DATABASE', ':memory:')\r\n app.teardown_appcontext(self.teardown)\r\n```","author":{"url":"https://github.com/sergioisidoro","@type":"Person","name":"sergioisidoro"},"datePublished":"2020-01-26T09:11:15Z","url":"https://github.com/bloomberg/python-github-webhook/issues/24"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a4563f33-2006-fa56-8e03-b46e11c1642a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A924:36B5:9D1197:D3E073:6AFE6168 |
| html-safe-nonce | 11e582898f18103591a86f09b111fd2652ac540b355e73a79b80a70df447c0ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTI0OjM2QjU6OUQxMTk3OkQzRTA3Mzo2QUZFNjE2OCIsInZpc2l0b3JfaWQiOiIyNTk3OTE3MTg1MzIxODg2MDU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 149f1c6eb94cd69921d45bc222619fd0981d5babc8e128aebbbcd5380121d10a |
| hovercard-subject-tag | issue:555201189 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bloomberg/python-github-webhook/24/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6aebd30f6dcc5f6d5b22e2bb500b2185be6d14fdaa138209868dd50cc67ee95b/bloomberg/python-github-webhook/issues/24 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6aebd30f6dcc5f6d5b22e2bb500b2185be6d14fdaa138209868dd50cc67ee95b/bloomberg/python-github-webhook/issues/24 |
| og:image:alt | When making modular flask applications, it's common not to immediately provide the app in the constructor, but to pass it later on with the method init_app(app) as we can see in the documentation -... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sergioisidoro |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/bloomberg/python-github-webhook git https://github.com/bloomberg/python-github-webhook.git |
| octolytics-dimension-user_id | 1416818 |
| octolytics-dimension-user_login | bloomberg |
| octolytics-dimension-repository_id | 50692237 |
| octolytics-dimension-repository_nwo | bloomberg/python-github-webhook |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50692237 |
| octolytics-dimension-repository_network_root_nwo | bloomberg/python-github-webhook |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width