Àå°í Ä«Å»·Î±×

Django Á¦³×¸¯ Ä«Å»·Î±× ÀÀ¿ë ÇÁ·Î±×·¥
Áö±Ý ´Ù¿î·Îµå

Àå°í Ä«Å»·Î±× ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • GPL
  • °Ô½ÃÀÚ À̸§:
  • Ivan Gromov
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://github.com/summerisgone/

Àå°í Ä«Å»·Î±× ű×


Àå°í Ä«Å»·Î±× ¼³¸í

Django Á¦³×¸¯ Ä«Å»·Î±× ÀÀ¿ë ÇÁ·Î±×·¥ Django-Catalog´Â Æ®¸® °èÃþ ±¸Á¶ÀÇ °´Ã¼¸¦ ±¸¼º ÇÒ ¼öÀÖ´Â Django ¾ÛÀÔ´Ï´Ù.ÀÌ ¹®¼­´Â Áö±ÝÀÌ °¡³­ÇÏÁö¸¸ ±âº» ¼³Á¤À¸·Î ÀÀ¿ë ÇÁ·Î±×·¥À» ¼³Á¤ÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÁöħÀÌ µé¾î ÀÖ½À´Ï´Ù. Django-Catalog¸¦ ´Ù¿î·ÎµåÇÏ°í ÆÄÀ̽㠰æ·Î¿¡ Æ÷ÇÔÇϽʽÿÀ. ÀÌ ¹æ¹ýÀ» ÆíÁýÇϽʽÿÀ.ÀÌ ¹æ¹ýÀ¸·Î : installation_apps + = [ 'Ä«Å»·Î±×', 'catalog.contrib.defaults', urlconf.py:urlpatterns + = ÆÐÅÏ ( '', (^ Ä«Å»·Î±× / ', Æ÷ÇÔ ('catalog.urls.by_id ')),) ORURLPATTERNS + = ÆÐÅÏ (' ', (r'^ catalog / ', include ('catalog.urls.by_slug 'Æ÷ÇÔ)),) by_id´Â ºä¸¦ ±¸¼ºÇÕ´Ï´Ù. ÀÌ¿Í °°Àº Æ®¸® Ç׸ñ URLÀ» Ç¥½ÃÇϽʽÿÀ : http://example.com/catalog/my-item-47/. My-ItemÀº °´Ã¼ÀÇ ½½·¯±×ÀÌ°í 47Àº TreeItem ID attribute.method by_slugÀÌ (°¡) http://example.com/catalog/item-my-item/¿Í °°Àº Æ®¸® Ç׸ñ URLÀ» Ç¥½ÃÇϱâÀ§ÇÑ ºä¸¦ ±¸¼ºÇÕ´Ï´Ù. ³» Ç׸ñÀº °³Ã¼ÀÇ ½½·¯±×ÀÌ°í Ç׸ñÀº Ç׸ñ ¸ðµ¨ À̸§ÀÔ´Ï´Ù. Notice, Method by_slug¸¦ »ç¿ëÇÏ´Â °æ¿ì ¸ðµç °´Ã¼¿¡´Â ½½·¯±× ¼Ó¼ºÀÌ ÀÖ¾î¾ßÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽㠡¤ Àå°í


Àå°í Ä«Å»·Î±× °ü·Ã ¼ÒÇÁÆ®¿þ¾î

ƼÄÏ Æ®¸®

Æ®¸®¿¡¼­ ƼÄÏÀ» Ç¥½ÃÇÏ´Â Æ®·¢ Ç÷¯±×ÀÎÀº ±¸Á¶È­ µÈ ƼÄÏ Å¸ÀÌƲÀ» ±â¹ÝÀ¸·Î ±¸¼ºµË´Ï´Ù. ...

157

´Ù¿î·Îµå