django-admin startproject rest-youtube-project
django-admin startapp student
from django.db import models
# Create your models here.
class Student(models.Model):
student_id = models.CharField(max_length=15, unique=True)
name = models.CharField(max_length=30)
age = models.IntegerField()
python manage.py makemigrations
python manage.py migrate
from django.contrib import admin
from .models import Student
# Register your models here.
admin.site.register(Student)
여기까지는 매우매우 간단한 기본 프로젝트 생성이라 어려운게 없었따
velog때문에 처음으로 마크다운 언어를 써보았다! 우왕