Àå°í - ½º¸¶Æ® ½½·¯±× ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Charles Leifer
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://www.charlesleifer.com/blog/
Àå°í - ½º¸¶Æ® ½½·¯±× ű×
Àå°í - ½º¸¶Æ® ½½·¯±× ¼³¸í
¸ðµ¨À»À§ÇÑ ½º¸¶Æ® ½½·¯±× Çʵå Django-smart-smart-smart-smart-smart-smartphere´Â LazyÀÇ ½½·¯±× Çʵ带 Á¦°øÇÏ´Â Django ¾ÛÀÌÁö¸¸ Å×½ºÆ®¿¡¼ ¿¹Á¦¸¦ ¼Ò¸ðÇÏ°í ÀÖ½À´Ï´Ù. Quick rundown : django.db °¡Á® ¿À±â ¸ðµ¨ from smartslug.fields import smartslugfieldclass simple (models.model) : ½½·¯±× = smartslugfield (max_length = 5, underscores = false) Ŭ·¡½º º¹ÇÕ (models.model) : title = models.charfield (max_length = 100) slug = smartslugfield (source_field = 'title', date_field = 'pub_date', split_on_words = true, max_length) = 10) pub_date = models.datetimefield (autotime = true) >>> s1 = simple.objects.create (slug = 'simple') >>> s1.slugsimpl >>> s2 = simple.objects.create (slug = ' °£´ÜÇÑ ') >>> S2.SLUGSIM-1 >>> s3 = simple.objects.create (slug ='simple ') >>> s3.slugsim-2 >>> c1 = complex.objects.create (title =' º¹ÀâÇÑ ¿¹ ') >>> C2 = Complex.Objects.Create (title ='º¹ÀâÇÑ ¿¹ ') >>> c2.slugcomplex_ ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽㠡¤ Àå°í
Àå°í - ½º¸¶Æ® ½½·¯±× °ü·Ã ¼ÒÇÁÆ®¿þ¾î