[django] 명령어 모음

서버 중지

sudo pkill -f runserver

장고 삭제

sudo pip uninstall Django
sudo apt-get remove python-pip

migrate 초기화

python manage.py migrate --fake <app이름> zero

migrate 특정 시점으로

python manage.py migrate --fake <app_name> 0001 (migrations 폴더안에 있는 파일번호)

migrate 실행하진 않고 내용만 보기

python manage.py sqlmigrate polls 0001

migrate 정상인지 체크

python manage.py check

패키지 목록 백업

pip freeze > requirements.txt

패키지 목록 복원

pip install -r requirements.txt

Subscribe to X세대 신입사원

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe
774-86-01972 cinnabar.3d@gmail.com