
** DB를 전부 날려도 되는 경우 해결법 **

프로젝트 폴더에서 db.sqlite3를 삭제한다.
python manage.py migrate 실행하면 재생성된다.

관리자 계정도 삭제되었으니
python manage.py createsuperuser로 다시 생성해준다.
'PYTHON' 카테고리의 다른 글
[Django] InconsistentMigrationHistory 오류 (0) | 2023.10.24 |
---|---|
[Django] LoginRequiredMixin, UserPassesTestMixin (0) | 2023.10.24 |
[파이썬] Fillow 라이브러리 설치 (1) | 2023.10.24 |
[파이썬] 앱 개발하기 (0) | 2023.10.24 |
[파이썬] 장고 설치 / 프로젝트 생성 (0) | 2023.10.24 |