| Django-database-files. µ¥ÀÌÅͺ£À̽º¿¡ ¾÷·Îµå µÈ ÆÄÀÏÀ» ÀúÀåÇÏ´Â Django ¿ë ½ºÅ丮Áö ½Ã½ºÅÛ |
Áö±Ý ´Ù¿î·Îµå |
Django-database-files. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Ben Firshman
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/bfirsh/
Django-database-files. ű×
Django-database-files. ¼³¸í
µ¥ÀÌÅͺ£À̽º¿¡ ¾÷·Îµå µÈ ÆÄÀÏÀ» ÀúÀåÇÏ´Â Django ¿ë ½ºÅ丮Áö ½Ã½ºÅÛ Django-database-files´Â DjangoÀÇ DjangoÀÇ ½ºÅ丮Áö ½Ã½ºÅÛÀÔ´Ï´Ù .Warning : ÀϹÝÀûÀ¸·Î Django¿¡¼ Á¤Àû ÆÄÀÏÀ» Á¦°øÇÏ´Â °ÍÀÌ ÁÁÁö ¾ÊÁö¸¸ À¯È¿ÇÑ »ç¿ë »ç·Ê°¡ ÀÖ½À´Ï´Ù. Django ¾ÛÀÌ Ä³½Ì ¸®¹ö½º ÇÁ·Ï½Ã µÚ¿¡ ÀÖ°í ÀÀ¿ë ÇÁ·Î±×·¥ ¼¹ö¸¦ È®Àå ÇؾßÇÏ´Â °æ¿ì database.installation : python setup.py installusage¿¡¼ ÆÄÀÏÀ» ÀúÀåÇÏ´Â °ÍÀÌ ´õ °£´Ü ÇÒ ¼ö ÀÖ½À´Ï´Ù. settings.py¿¡¼ database_files¸¦ installed_apps¿¡ Ãß°¡ÇÏ°í Ãß°¡ÇÕ´Ï´Ù. ÀÌ Çà : default_file_storage = 'database_files.storage.DatabaseStorage'Alload_TOPHOUGH UPLOAD_TO´Â filefieldÀÇ Çʼö ÀμöÀ̹ǷΠµ¥ÀÌÅͺ£À̽º¿¡ ÆÄÀÏÀ» ÀúÀåÇÏ´Â µ¥ »ç¿ëµÇÁö ¾Ê½À´Ï´Ù. ´õ¹Ì °ªÀ¸·Î ¼³Á¤ÇϽʽÿÀ. upload = models.filefield (upload_to = 'Çʼö ¾øÀ½') ¸ðµç field ¹× À̹ÌÁö Çʵå ÆÄÀÏÀº ÀÌÁ¦ database.test suite./run_tests.sh ¿ä±¸ »çÇ׿¡ ÀúÀåµË´Ï´Ù. ¡¤ ÆÄÀ̽㠡¤ Àå°í
Django-database-files. °ü·Ã ¼ÒÇÁÆ®¿þ¾î