Skip to content

Commit

Permalink
thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
mseo39 committed Feb 17, 2021
1 parent 60156e7 commit 3d27fb3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Binary file modified 9th_django/django/map/main/__pycache__/models.cpython-38.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions 9th_django/django/map/main/models.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from django.db import models
from imagekit.models import ImageSpaceField
from imagekit.models import ImageSpecField
from imagekit.processors import ResizeToFill
# Create your models here.

class Pictures(models.Model):
text = models.TextField()
image= models.ImageField(upload_to="blogimg")
image_thumbnail = ImageSpaceField(source='image', processors=[ResizeToFill(120,60)])
image_thumbnail = ImageSpecField(source='image', processors=[ResizeToFill(120,60)])
#가로 세로
#format='JPEG' option={'quality':60}
Binary file modified 9th_django/django/map/map/__pycache__/settings.cpython-38.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion 9th_django/django/map/map/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

#privider
'allauth.socialaccount.providers.google',
'imagekit'
'imagekit',
]

MIDDLEWARE = [
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3d27fb3

Please sign in to comment.