본문 바로가기

Python_WEB/Django

[Django]django-admin 주요 명령어

728x90

1> 각 응용 프로그램에서 제공하는 사용 정보 및 명령 목록을 표시

django-admin help

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#getting-runtime-help

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

2> 사용 가능한 명령 목록을 표시

django-admin help --command

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#getting-runtime-help

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

3> 주어진 명령에 대한 설명 및 사용 가능한 옵션 목록을 표시

django-admin help <command>

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#getting-runtime-help

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

4> Django의 버전 확인

django-admin version

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#determining-the-version

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

5> 모델의 변경 사항을 기반으로 새 마이그레이션 작성

django-admin makemigrations

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#makemigrations

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

6> 데이터베이스 모델 상태를 현재 모델 및 마이그레이션 동기화

django-admin migrate

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#migrate

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

7> 개발 서버 시작

django-admin runserver

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#runserver

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

8> Django를 통해 보내는 메일이 작동하는지 확인하기 위해 테스트 메일 보내기

django-admin sendtestemail

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#sendtestemail

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

9> Python 인터프리터 실행

django-admin shell

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#shell

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

10> 프로젝트의 모든 마이그레이션을 표시

django-admin showmigrations

 

https://docs.djangoproject.com/ko/3.0/ref/django-admin/#showmigrations

 

django-admin and manage.py | Django 문서 | Django

The Django Software Foundation deeply values the diversity of our developers, users, and community. We are distraught by the suffering, oppression, and systemic racism the Black community faces every day. We can no longer remain silent. In silence, we are

docs.djangoproject.com

 

반응형