분류 전체보기 367

django 2.0 버전부터 바뀐 url

고가 2.0부터 url이 바뀌었다고 한다. 기존의 url방식은 정규식 때문에 복잡한 감이 있었는데 변경 후 간결해져서 좋다 https://wikidocs.net/9649 예제를 바꿔보면 # url(r'^explore/tags/(?P\w+)/$', views.search, name='search'), # path('explore/tags//', views.search, name='search'), # url(r'^(?P[0-9]+)/modify/$', views.modify, name='modify_memo'), # path('update/', views.update, name="update"), 요렇게 된다. w에는 str을 썼고 d는 int를 써서 맞춰주었다

끄적끄적 2020.04.15

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