python) The joined path is located outside of the base path component

boingboing·2022년 1월 5일
0

현상


def link_callback(uri, rel):
    """
    Convert HTML URIs to absolute system paths so xhtml2pdf can access those
    resources
    """
    result = finders.find(uri)
  • pdf다운을 적용하기 위해 오픈소스 코드를 그대로 적용했더니 발생!!!!

  • 장고의 finder가 path join하다 발생한 것으로 추정.

    장고가 생성한 경로가 (C:\static\main\type2\images\default\logo_pcc.png 이런 식으로 되있었음. 잘못된 경로....

프로젝트 폴더 경로를 찾아야 하는데 그냥 C에 join됨 ...ㅇ<-<

0개의 댓글