Django & mysql

Nina·2020년 10월 9일
0

Python/Django

목록 보기
2/4
post-thumbnail

1. Create Django Project & App

django-admin startproject favourite_bands
python manage.py startapp bands

2. Create Database

mysql -u root -p
create database bands character set utf8mb4 collate utf8mb4_general_ci;
use bands;

3. models.py


4. python shell

from bands.models import *

5. mysql

profile
https://dev.to/ninahwang

0개의 댓글