-
Updated
Feb 2, 2022 - Python
ASGI
ASGI (Asynchronous Server Gateway Interface) is a spiritual successor to WSGI, intended to provide a standard interface between async-capable Python web servers, frameworks, and applications.
Here are 217 public repositories matching this topic...
When running strawberry export-schema core.schema:schema in a django project, we get this error:
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
To fix this we should create a management comm
-
Updated
Jan 31, 2022 - Python
-
Updated
Jan 31, 2022 - Python
-
Updated
Jan 3, 2022 - Python
-
Updated
Dec 14, 2021 - Python
-
Updated
Dec 8, 2021 - Python
Improve Access Logs
We are moving some of our django applications to run inside a lambda. When we did so we lost access logs and gained logs that don't have much information. It would be useful if the Mangum Request/Response had additional log information or a mechanism was added to make logging access logs easy.
Example. WSGI access logs
GET /v2/resource HTTP/1.1" 200 686
GET /v2/resource/123 HTTP/1.1" 20
It would be nice if there was a new clause which can be added to queries called callback.
For example:
def callback_handler(success, value):
if success:
print(f'The query was successful and returned {value}')
else:
print("The query failed")
Band.select().callback(callback_handler).run_sync()The callback could be a function or coroutine, wh
-
Updated
Jan 31, 2022 - Python
-
Updated
Mar 14, 2020 - Python
-
Updated
Jan 8, 2022 - Python
-
Updated
Jan 19, 2022 - Python
Currently, it is not mention in docs on how to set cookies although it is possible by leveraging after_request hook.
example:
async def set_auth_status(response: Response) -> Response:
response.set_cookie("X-AUTH-STATUS", "1")
return response-
Updated
Jan 21, 2022 - Python
-
Updated
Jan 21, 2022 - Python
-
Updated
Dec 31, 2021 - Python
-
Updated
Jan 29, 2022 - Python
-
Updated
Dec 20, 2021 - Python
-
Updated
Jan 15, 2022 - Python
As discussed in #1979, the current CONTRIBUTING.md document instructs people to run
tools/mintest.sh, which requires Python 3.8 and 3.5 installed simultaneously and then it makes things a bit confusing when referencing Python 3.6 or 3.7 and thenpyenv shell 3.8.0 3.5.8and then further belowpyenv virtualenv 3.8.0 falcon-sandbox-38. I'm not familiar withpyenv, but this