• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    해결됨

type 'PosixPath' is not iterable 에러

21.05.07 23:48 작성 조회수 953

0

python manage.py migrate 명령하니

TypeError: argument of type 'PosixPath' is not iterable

라고 뜨네요. 어디서 나온 'PosixPath' 인지 모르겠어요.

아래는 워크스페이스 주소인데 봐줄 수 있나요?

https://goor.me/sZ6Jn

 

답변 1

답변을 작성해보세요.

0

HW님의 프로필

HW

질문자

2021.05.10

facebookclone/config/static/settings.py 의 82번째 라인 데이터베이스 설정에 기입된

'NAME': BASE_DIR / 'db.sqlite3' 가 문제 였네요.

'NAME': os.path.join(BASE_DIR, 'db.sqlite3') 로 바꾸니 해결됐습니다.