본문 바로가기
반응형

파이썬 웹 개발28

[Django] django.core.exceptions.improperlyconfigured 에러 해결 [Django] django.core.exceptions.improperlyconfigured 에러 해결 django.core.exceptions.improperlyconfigured: offline compiled file `css/main.css` is missing and libsass has not been installed. ■ 해결방안 pip install libsass django-compressor django-sass-processor pip install libsass pip install django-compressor pip install django-sass-processor 설치해주면 해결된다. django.core.exceptions.improperlyconfigured: of.. 2022. 8. 18.
[Django] SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async [비동기 async 함수에서 ORM 조회 안되는 경우 ] Django: SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async # 샘플코드 async def sync_function(): query = Models.objects.filter(status='사용').all() return 'success' 해당 비동기 함수에서는 Django: SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async 에러가 발생할 거에요. 조회가 되지 않으면, UPDATE나 DE.. 2022. 7. 26.
[Django] No module named 'googleapiclient' 설치 에러 해결 # ERROR No module named 'googleapiclient' # CAUSE googleapiclient는 python3이 아닌 python2 또는 낮은버전에만 설치됩니다. 에러가 난다면 python3 이상의 버전일 가능성이 높습니다. python3 환경은 하기와 같이 Googleapiclient를 설치합니다. ■ 해결방법 pip install google-api-python-client pip install google-api-python-client 2022. 7. 14.
[Django] 파이썬 데이터시각화 & txt 업로드, 읽기, 키워드 분석 [1] [Django] 파이썬 데이터시각화 & txt 업로드, txt파일 읽기, 최다 키워드 찾기 [Django] 파이썬 데이터시각화 & txt 파일업로드, txt파일 읽기, 키워드 분석하기[1] 파이썬 장고를 통해 txt 파일 업로드 후 txt파일의 내용을 읽어 제일 많이 언급된 키워드를 찾는 방법입니다. 파이썬 Hannanum 라이브러리를 사용할 예정입니다. 1. 파이썬 장고 Ajax 파일업로드( txt파일 업로드 ) 2. 장고 txt파일 읽기 3. Hannanum 를 활용하여 txt파일 내용 분석하기 4. 분석된 내용을 Counter 라이브러리를 통해 최다 빈도수 키워드 찾기 5. 결과 확인 ■ 파일 업로드 페이지 파일 업로드 html 페이지 작성 ■ 전송 버튼 스크립트 작성 # 클릭이벤트 -> 파일 pa.. 2022. 6. 2.
반응형