본문 바로가기
반응형

파이썬 웹 개발28

[ Django ] Django 1.11 버전 Celery 연결하기 오라클 환경때문에 1버전의 장고를 써야하는 경우가 있습니다. 이 때 Celery를 붙일 때 버전 문제가 많습니다. 1.11 버전에서 설정의 차이는 크게 없지만, 버전의 문제가 많습니다. 종속되었거나 혹은 연결되어있는 라이브러리의 버전들도 많아서 하위와 같이 따라해보시면 될 것 같습니다. [ 개발 환경 ] mac m1 python 3.8 django 1.11.29 [ 설치 라이브러리 ] celery==4.4.7 django-celery-results==1.0.2 kombu==4.6.11 vine==1.3.0 redis==3.5.3 billiard==3.6.4.0 Django==1.11.29 [ config/settings/base.py ] CELERY_ALWAYS_EAGER = True CELERY_BRO.. 2023. 4. 12.
[Django] SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async. SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async. 파이썬 장고 SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async. 비동기 함수 SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async. [Django] SynchronousOnlyOperation: You cannot call this from an async context .. 2022. 11. 3.
[Django] 파이썬 장고 비동기 함수_ asyncio 활용하기 [Django] 파이썬 장고 비동기 함수_ asyncio 활용하기 [Django] python django 비동기 함수_ asyncio 활용하기 SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async. 파이썬 장고에서 개발을 하면서, Celery가 아닌 간단한 비동기 함수가 필요할 때가 있다. 장고에서는 asyncio를 통해 비동기 함수를 구현할 수 있다. Python 3.7 이상 ■ 활용방법 import asyncio async def sync_function(a, b, c): test = str(a) + str(b) + str(c) return 'success' def str_.. 2022. 11. 2.
[Pywebview] webView:runJavaScriptConfirmPanelWithMessage ■ ERROR 구문 PyObjC: Exception during dealloc of proxy: Completion handler passed to -[BrowserDelegate webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:] was not called PyObjC: Exception during dealloc of proxy: Completion handler passed to - BrowserDelegate webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler: Pywebview(파이웹뷰)에서 생길 수 있는 문제이.. 2022. 9. 20.
반응형