에러 50

Fatal error in launcher: Unable to create process using

$ pip freeze > requirements.txt Fatal error in launcher: Unable to create process using '"c:\users\#\desktop\myproject\myvenv\scripts\python.exe" "C:\Users\#\Desktop\??\myProject\myvenv\Scripts\pip.exe" freeze': ??? ??? ?? ? ????. 라이브러리 리스트를 뽑다 발생한 오류이다 경로를 찾지 못하여 생기는 오류 python -m pip freeze > requirements.txt를 사용해 주면 된다. Fatal error in launcher: Unable to create process using 해당 오류가 나오면 명령어 pip..

에러 2020.05.05

html? Failed to load resource: the server responded with a status of 404 (Not Found)

개발자 도구에서 자꾸 저 에러가 나왔다. 기능에는 문제가 없었지만 거슬려서 찾아본 결과 찾는 아이콘이 없어서 저러는거라구 하였다. 북마크에 들어갈 아이콘이나 상단에 뜨는 아이콘 그래서 하나를 만들어주면 된다고 하였다. 참고 : https://okky.kr/article/423208?note=1322983 참고 2 : https://zzdd1558.tistory.com/191 해결 방법

에러 2020.04.12

django pillow 설치 오류 The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.

During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "C:\Users\jjs95\AppData\Local\Temp\pip-install-y8jrfcfl\Pillow\setup.py", line 888, in raise RequiredDependencyException(msg) __main__.RequiredDependencyException: The headers or library files could not be found for zlib, a required dependency when compiling Pillow from..

에러 2020.04.11

Reverse for '~~~' with arguments '('',)' not found. 1 pattern(s) tried: ['~~~/~~~/(?P<~~~.id>[0-9]+)$']

[django error] Reverse for '~~~' with arguments '('',)' not found. 1 pattern(s) tried: ['~~~/~~~/(?P[0-9]+)$'] 해당 오류는 id값을 찾지 못해서이다 def update(request, post_id): post = Post.objects.get(id = post_id) if request.method == 'POST': post.main_text = request.POST['main_text'] post.create_user = User.objects.get(username = request.user.get_username()) post.update_date = timezone.datetime.now() post.sa..

에러 2020.03.26

[django error] Manager isn't accessible via * instances

프로젝트를 진행하며 해당 오류가 났다. * AttributeError: Manager isn't accessible via Post instances view단에서 모델의 id값을 가지고 삭제를 할 때 발생한 에러이다. * post = Post().objects.get(id = post_id) 이런 식으로 가져왔는데 objects를 사용할 때에는 class레벨에서 사용 가능한 거라고 한다. instances에선 불가능하다 해결방법 * post = get_object_or_404(Post, id=post_id) get_object_or_404를 이용해 해결 완료 ^o^ 출처 및 참고 : https://m.blog.naver.com/PostView.nhn?blogId=exam2&logNo=176866620&..

에러 2020.03.25

Mapped Statements collection does not contain value for

에러를 찾아보자구 console창을 통해 의심 가는 목록들 ### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ~~~ 파일 경로 ### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ~~~ 파일 경로 Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ~~~ 파일 경로 -..

에러 2020.03.22

ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding'

ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Users\jjs95\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 932, in _bootstrap_inner self.run() File "C:\Users\jjs95\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 870, in run self._targ..

에러 2020.03.16