https://github.com/shuklaritvik06/flask_imp
Flask Important Stuff
https://github.com/shuklaritvik06/flask_imp
flask graphql python wtforms
Last synced: 5 months ago
JSON representation
Flask Important Stuff
- Host: GitHub
- URL: https://github.com/shuklaritvik06/flask_imp
- Owner: shuklaritvik06
- License: mit
- Created: 2022-11-09T13:16:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T18:39:42.000Z (almost 2 years ago)
- Last Synced: 2025-03-09T13:29:32.636Z (about 1 year ago)
- Topics: flask, graphql, python, wtforms
- Language: Python
- Homepage:
- Size: 254 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask Projects

Welcome to the Flask Projects repository.
## Application Context
Application context is an application-level context in Flask that represents the state and configurations of the Flask application. It holds information such as configuration settings, registered blueprints, and extensions. The application context is created when the Flask application starts running and is destroyed when the application stops.
In Flask, you can access the application context using the `current_app` proxy or by using the `app_context()` method.
```python
from flask import current_app
current_app.config['DEBUG'] = True
with app.app_context():
pass
```
## Request Context
Request context is a request-level context in Flask that represents the state of an individual request made to the Flask application. It contains information about the current request such as request headers, request method, request data, and request parameters. Flask automatically creates and manages request contexts for each incoming request.
In Flask, you can access the request context using the `request` proxy.
```python
from flask import request
request.method
request.args
request.form
request.headers
```
## Projects
- [x] Basic Authentication
- [x] CRUD MONGO
- [x] CRUD SQLite
- [x] JWT Authentication
- [x] Relationships in Database
- [x] WTForms
- [x] OAuth Authentication
- [x] File Upload
- [x] Graphql
- [x] Websocket