-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
Binary file modified
BIN
+196 Bytes
(140%)
9th_django/django/map/main/__pycache__/models.cpython-38.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
BIN
+0 Bytes
(100%)
9th_django/django/map/map/__pycache__/settings.cpython-38.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
|
||
#privider | ||
'allauth.socialaccount.providers.google', | ||
'imagekit' | ||
'imagekit', | ||
] | ||
|
||
MIDDLEWARE = [ | ||
|
Binary file added
BIN
+1.1 KB
...ngo/map/media/CACHE/images/blogimg/sample4/e03eb9776cbc0a4fd91b02f80e6c1945.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.