Skip to content

Commit

Permalink
createsuperuser and migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
geun lim authored and geun lim committed Jul 24, 2018
1 parent a17e752 commit e08c218
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Clonning instagram with python django and react and react native
limstagram 폴더 및에 이미지폴더 생성됨
- 이후 base.py 에서 LOCAL_APPS 에 images 추가하기

python manage.py migrate
python manage.py makemigrations (생성한 모델, 어플레키에션 필드들을 변경시)

## 알아야 할것들
> Django ORM
>> create() , get(), filter(), delete()
Expand All @@ -55,6 +58,9 @@ british_cats = Cat.objects.filter(breed="British")
## 필터 Lookups options = startwith, contains, istartswith, icontainsm, lt , gt, ...
cats = Cat.objects.filter(name__startswith="Mr")
cats = Cat.objects.all()
# delete()
fluffy = Cat.objects.get(id=1)
fluffy.delete()

```

Expand Down

0 comments on commit e08c218

Please sign in to comment.