| Django-Tables2-Reports. Django-Tables2-Reports¸¦ »ç¿ëÇϸé Django-Tables2ÀÇ CSV º¸°í¼¸¦ ¾òÀ» ¼ö ÀÖ½À´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Django-Tables2-Reports. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Pablo Martin
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://grupoikusnet com
Django-Tables2-Reports. ű×
Django-Tables2-Reports. ¼³¸í
INSTALLED_APPS = ( 'django_tables2_reports') MIDDLEWARE_CLASSES = ( 'django_tables2_reports.middleware.TableReportMiddleware'Àå°í - Å×À̺í 2-º¸°í¼¸¦ ¼³Á¤¿¡¼ ´ç½ÅÀÇ project.Installation¿¡ ÃÖ¼ÒÇÑÀÇ º¯°æÀ¸·Î ¸ðµç Å×À̺íÀÇ CSV º¸°í¼¸¦ ¾òÀ» ¼ö Àå°í ÀÀ¿ë ÇÁ·Î±×·¥ÀÔ´Ï´Ù ) ÀÌÁ¦ Å×À̺í Àü¿¡ 'TableReport'###############ÀÇ È®ÀåÇؾßÇÕ´Ï´Ù ±ÍÇÏÀÇ ÇÁ·ÎÁ§Æ® - º¯È ################## # import¸¦ django_tables2 tablesclassÀ» MyTable (tables.Table) µî ... ############### Áö±Ý ################### ### django_tables2_reports.tables¿¡¼ TableReportclassÀ» MyTable (TableReport)¸¦ °¡Á®¿É´Ï´Ù ...- ÀÌÁ¦ ´Ù¸¥ RequestConfig¸¦ »ç¿ëÇÑ´Ù : ############### Àü¿¡ ######### ########## django_tables2 ¼öÀÔ RequestConfigdefÀÇ my_view (¿äû)¿¡¼ : OBJS = .... = Å×À̺íÀ» MyTable (OBJS) RequestConfig (¿äû) .configure (Ç¥)¿¡´Â render_to_response ¸®ÅÏ ( 'APP1 / my_view.html' { 'Ç¥'Ç¥} context_instance = RequestContext Áö±Ý (¿äû)) ############### ################## #### django_tables2_reports.config ¼öÀÔ RequestC¿¡¼ onfigReport RequestConfigdefÀÇ my_view (¿äû)°ú °°Àº : OBJS = .... = Å×À̺íÀ» MyTable (OBJS) RequestConfig (¿äû) .configure (Ç¥)¿¡´Â render_to_response ¸®ÅÏ ( 'APP1 / my_view.html'{ 'Ç¥'Ç¥} = context_instance RequestContext (¿äû)) UsageUnder Ç¥´ÂÀÌ ¾ÆÀÌÄÜÀ» Ŭ¸¯Çϸé, ´ç½ÅÀº) ÆäÀÌÁö ¸Å±è¾øÀÌ Å×À̺í (¸ðµç Ç׸ñÀ» CSV º¸°í¼¸¦ ¾òÀ»ÇÏ´Â CSV ¾ÆÀÌÄÜÀÌ ³ªÅ¸³³´Ï´Ù. ÁÖ¹® ÀÛÇ°! ¹Ìµé¿þ¾î¸¦ »ç¿ëÇÒ ¼ö¾ø°í Á¶±Ý¸¶´Ùº¸±â¸¦ º¯°æÇÏ·Á¸éÀÌ applicationYou¸¦ »ç¿ëÇÏ´Â ´Ù¸¥ ¹æ¹ýÀº, ´ç½ÅÀºº¸´Ù È¿À²ÀûÀÎ Äڵ带 ¾òÀ» °ÍÀÔ´Ï´Ù,ÇÏÁö¸¸ ´ç½ÅÀº ¸ðµç viewProductÀÇ È¨ÆäÀÌÁö¿¡ ÀûÀÀÇØ¾ß ÇÒ °Í
Django-Tables2-Reports. °ü·Ã ¼ÒÇÁÆ®¿þ¾î