반응형
https://docs.djangoproject.com/en/4.0/intro/tutorial02/
1. 기본 설치되는 sqlite3의 shell에 입장하기
$ python manage.py dbshell
2. 존재하는 table 확인하기
$ python manage.py dbshell
SQLite version 3.36.0 2021-06-18 18:58:49
Enter ".help" for usage hints.
sqlite> .tables
auth_group auth_user_user_permissions
auth_group_permissions django_admin_log
auth_permission django_content_type
auth_user django_migrations
auth_user_groups django_session
3. DB shell 빠져나오기
sqlite> .quit
4. DB Schema Migration 하기
$ python manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
No migrations to apply.
반응형
'Django' 카테고리의 다른 글
Django Template을 이용한 html 호출 (0) | 2022.02.08 |
---|---|
Django Project Setup (0) | 2022.02.08 |
Django App 만들기 (0) | 2022.02.08 |
Django 프로젝트 만들기 및 서버 기동 (0) | 2022.02.08 |
Django, 가상환경 설치 (0) | 2022.02.08 |