- Python Django ๊ธฐ์ด ๐ข | VSCode ๊ธฐ์ค
- detail
- update
- delete
- Model Intro
- ๋ชจ๋ธ์ด ํ์ํ ์ด์
- ํด๋์ค์ ์ธ์คํด์ค๋ฅผ ์ด์ฉํ ์ ๋ณด ์ ์ฅ
- db์ ํ์์ฑ
from email import contentmanager
from turtle import title
from django.db import models
# Create your models here.
class Review:
title = ''
content = ''
user = ''
def __init__(self, content=content, title=title, user=user): # key๊ฐ์ ๋ฃ์ผ๋ฉด ์์ ์๊ด์์ด ์
๋ ฅ ๋ฐ์ ์ ์์
self.content = content
self.title = title
self.user = user
review1 = Review(title='๋ ์น', content='1995๋
๋', user='leehyewon')
print(review1.title)
์คํ๋ ๋๋ง ์ ์ฅ๋๊ธฐ ๋๋ฌธ์ ์ ๋ณด๋ฅผ ์์ ํ๊ฒ ์ ์ฅํ๊ธฐ ์ํด์ ๋ฐ์ดํฐ ๋ฒ ์ด์ค๋ฅผ ์ด์ฉ
+ ์ฐธ๊ณ ์๋ฃ
Built-in template tags and filters | Django documentation | Django
Django The web framework for perfectionists with deadlines. Overview Download Documentation News Community Code Issues About ♥ Donate
docs.djangoproject.com
'woncoding > TIL' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| TIL | 10.5.์ [Django Project] (0) | 2022.10.06 |
|---|---|
| TIL | 10.4.ํ [Django Project] (0) | 2022.10.05 |
| TIL | 9.28.์ [Python ์ฅ๊ณ / Django ๊ธฐ์ด๐ข] (0) | 2022.09.28 |
| TIL | 9.27.ํ [Python ์ฅ๊ณ / Django ๊ธฐ์ด๐ข] (0) | 2022.09.27 |
| TIL | 9.26.์ [Python ์ฅ๊ณ / Django ๊ธฐ์ด๐ข] (0) | 2022.09.26 |