전체 글(754)
-
TortosiseSVN update/commit
SVN update : SVN 저장소에서 로컬PC로 파일들을 가져오는 명령 SVN commit : 로컬PC의 파일들을 SVN 저장소로 보내는 명령
2021.04.18 -
OCR Tesseract inttemp not found
이유는 잘 모르겠지만, shapetable 파일을 삭제하면 해결됨 mftraining -F ./ocr/work/kor2.font_properties -D ./static/ocr -U ./static/ocr/unicharset -O ./static/ocr/kor2-0.unicharset Reading ./static/ocr\kor2.12lottemartdreambold.exp0.tr ... id size():Error:Assert failed:in file ../../../src/ccutil/unicharset.cpp, line 294 cntraining Reading ./static/ocr\kor2.12lottemartdreambold.exp0.tr ... Clustering ... Wri..
2021.04.18 -
Python 사용자 계정 및 홈디렉토리 정보 가져오기
import getpass import os # 사용자이름 print(getpass.getuser()) # 사용자 홈디렉토리 print(os.path.expanduser('~'))
2021.04.11 -
pytube.exceptions.RegexMatchError: get_ytplayer_config: could not find match for config_patterns
특정 버전으로 셋팅해야 해결 됨 pip install pytube==10.4.1
2021.04.10 -
Forbidden (403) : CSRF verification failed. Request aborted.
Forbidden (403) CSRF verification failed. Request aborted. You are seeing this message because this site requires a CSRF cookie when submitting forms. This cookie is required for security reasons, to ensure that your browser is not being hijacked by third parties. If you have configured your browser to disable cookies, please re-enable them, at least for this site, or for “same-origin” requests...
2021.04.10 -
NoReverseMatch : Reverse for 'download' not found. 'download' is not a valid view function or pattern name.
/mp3/views.py def index(request) : template = 'index.html' return render(request, template, None) mp3/templates/index.html mp3/urls.py app_name = 'mp3' urlpatterns = [ path('', views.index, name='index'), ] index.html에서 찾는 download가 없기 대문에 에러 발생 아래와 같이 추가해줘야 함 views.py def index(request) : template = 'index.html' return render(request, template, None) def download(request) : return HttpResponseR..
2021.04.10