| DJango-S3 Æú´õ - ½ºÅ丮Áö Django-StoragesÀÇ S3BotostorageÀÇ ºü¸¥ È®Àå |
Áö±Ý ´Ù¿î·Îµå |
DJango-S3 Æú´õ - ½ºÅ丮Áö ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Benjamin W Stookey
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/jamstooks/
DJango-S3 Æú´õ - ½ºÅ丮Áö ű×
DJango-S3 Æú´õ - ½ºÅ丮Áö ¼³¸í
DJango-S3-Folder-Storage´Â Django-StoragesÀÇ S3BotostorateÀÇ ºü¸¥ È®ÀåÀ» ÅëÇØ S3 Bucket¿¡¼ ¾÷·ÎµåµÇ°í Á¤Àû ¹Ìµð¾î¿¡ ´ëÇÑ º°µµÀÇ Æú´õ¸¦ Çã¿ëÇÕ´Ï´Ù. GitHub¿¡¼ ¼³Ä¡ÇÒ PIP` (PYPI ¿¡¼ÀÌ ÀÛ¾÷À» ¼öÇà ÇÒ ¶§±îÁö) : PIP ¼³Ä¡ -e git : //github.com/jamstooks/django-s3-folder-storage.git#egg=django_s3_folder_storage-devadd`s3_folder_storage` to setting.py ÆÄÀÏ : installed_apps = (... 's3_folder_storage', ... ) ConfigurationYou´Â º»ÁúÀûÀ¸·Î S3 È£½ºÆÃÀ» À§ÇØ 'Django-Storages'¸¦ »ç¿ëÇϹǷΠ¼³Á¤À» »ç¿ëÇÏ°í ÀÖ½À´Ï´Ù. `django-s3-folder-storage`´Â`default_s3_path`¿Í`static_s3_path`¿Í °ü·ÃµÈ µÎ °¡Áö ¼³Á¤ÀÌ _s3_path`ÀÔ´Ï´Ù. default_file_storage = 's3_folder_storage.s3.defaultstorage'default_s3_path = "media"staticfiles_storage = 's3_folder_storage.s3. staticStorage 'static_s3_path = "static"aws_access_key_id = {{{key}}} aws_secret_access_key = {{ºñ¹Ð Å° ¿©±â}} aws_storage_bucket_name = {{´ç½ÅÀÇ ¹öŶ À̸§ ¿©±â}} media_root ='/ % s / '% default_s3_path media_url =' //s3.amazonaws.com/%s/media/ '% aws_storage_bucket_name static_root = "/ % s /"% static_s3_path static_url ='//s3.amazonaws.com/%s/static/ '% aws_storage_bucket_name admin_media_prefix = static_url +' admin / 'Á¦Ç°ÀÇ È¨ÆäÀÌÁö
DJango-S3 Æú´õ - ½ºÅ丮Áö °ü·Ã ¼ÒÇÁÆ®¿þ¾î