Àå°í ½ºÄ³ Æúµù

Àº ¾Û¿¡ ´ëÇÑ ÀÚ¸® Ç¥½Ã ÀÚ µ¥ÀÌÅ͸¦ ¸¸µì´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

Àå°í ½ºÄ³ Æúµù ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Other/Proprietary Li...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Simon Baechler
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/sbaechler/

Àå°í ½ºÄ³ Æúµù ű×


Àå°í ½ºÄ³ Æúµù ¼³¸í

Django-scaffoldingÀº App.UsageCreateÀÇ App.UsageCreate Scaffolding Classes.Sample Models.py:Class Ç׸ñ (models.model)ÀÌ Æ÷ÇÔ µÈ App µð·ºÅ丮 ³»ÀÇ Scaffolds.py ¸ðµâÀÔ´Ï´Ù. first_name = models.CharField ( 'À̸§', max_length = 32) last_name = models.charfield ( '¼º', max_length = 32) ´ñ±Û = models.textfield ( 'comment') image = models.ImageField (upload_to = '¾÷·Îµå / % y / % m / % d ', blank = true, null = true) contest = models.pointignkey (ÄÜÅ×½ºÆ®) ... »ùÇà scaffolds.py:import scaffoldingfrom scaffolding.libraryingfrom scaffolding.library.flickr import flickrinterestingfrom myApp.models °¡Á® ¿À±â customerclass entryscaffold (object) : first_name = scaffolding.firstname (max_length = 32) last_name = scaffolding.lastname (max_length = 32) comment = scaffolding.loremipsum (´Ü¶ô = 1) contest = scaffolding.ForeignKey (queryset = contest.objects.filter (name = 'testContest')) À̹ÌÁö = Scaffolding.RandomInternetImage (¹é¿£µå = flickrinteresting) ½ºÄ³ Æúµå ¸µ. µî·Ï (Entry, EntryScaffold) Mind SY NATAX for foreignkey Çʵå. Çʵ忡 Á¤¼ö¸¦ ÇÒ´ç ÇÒ ¼ö ÀÖÁö¸¸ ÇØ´ç Å°°¡ÀÖ´Â ¿ä¼Ò°¡ ÀÖ´ÂÁö È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù. ¹°·Ð FK Çʵ忡 °´Ã¼¸¦ ÇÒ´ç ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. Flickr API¸¦ »ç¿ëÇؾßÇÏ´Â Flickr ¶óÀ̺귯¸®¸¦ »ç¿ëÇÏ·Á¸é http://stuvel.eu/flickrapi installation.run µ¥ÀÌÅ͸¦ ¸¸µå´Â °ü¸® ¸í·ÉÀ» ÀÛ¼ºÇϽʽÿÀ. manage.py scaffold myApp.Mymodel 20 ¹ø ¼ýÀÚ´Â »ý¼º µÉ Ç׸ñÀÇ amoutÀ» ÀǹÌÇÕ´Ï´Ù. ÀÎÅÍÇÁ¸®ÅÍ ¶Ç´Â ViewSyou¿¡¼­ ½ºÄ³ ÆúµùÀ» »ç¿ëÇÏ·Á¸é Æ÷ÇÔ µÈ Ŭ·¡½º ³ª ÀÚ½ÅÀÇ ¸ðµâÀ» ½©¿¡ ½Ãµµ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¸ðµç Ŭ·¡½º´Â ÇʵåÀÇ °ªÀ» »ý¼ºÇÏ´Â »ý¼º±â (Æ©ºê¶ó°í ÇÔ)ÀÔ´Ï´Ù. start ./manage.py ½© : >>> ½ºÄ³ Æúµù °¡Á® ¿À±â * >>> r = randint (min = 1, max = 5) >>> r.next () >>> r.next () >>> n = À̸§ (¼ºº° = 'm') >>> n.next () >>> n.next () Æ÷ÇÔ µÈ Æ©ºê À̸§ »ý¼º ¹«ÀÛÀ§ À̸§ ...¿¡ '³²¼º', '¿©¼º', 'm'¶Ç´Â 'f'.loremipsumgenerates´Â lorem ipsum text°¡ µÉ ¼ö ÀÖ½À´Ï´Ù. ´Ü¶ôÀÇ ¼ö´Â ´Ü¶ôÀ¸·Î Á¤Àǵ˴ϴÙ. randinteNeTeveÀÇ ÀÓÀÇÀÇ Á¤¼ö¸¦ queryset°ú queryset°ú ¹Ýº¹ÇÕ´Ï´Ù. Çʵ忡 ¾ÆÀÌÅÛÀ» ¿Ü±¹¾î·Î ÇÒ´çÇÕ´Ï´Ù. ÃæºÐÇÑ Ç׸ñÀ̾ø´Â °æ¿ì ÁÖº¯À» °¨½Î½Ê½Ã¿À .RandomInterNetImageCeates ÀÎÅÍ³Ý ¼Ò½º¸¦ »ç¿ëÇÏ¿© À̹ÌÁö ÇʵåÀÇ ÀÓÀÇÀÇ À̹ÌÁö. Flickr 'Daily Fountering Images'±×·¡¹ö°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù .AlwayStruerTurns TrueAlwaysFalserTurns´Â »ç¿ëÀÚ Á¤ÀÇ °´Ã¼¸¦ FalseContribcrates·ÎÇÕ´Ï´Ù. ¹é¿£µå Ŭ·¡½º´Â ù ¹ø° ¸Å°³ º¯¼öÀÔ´Ï´Ù. ¹é¿£µå Ŭ·¡½º´Â Tube.FacebookTestUserCreates Facebook ¾ÛÀÇ Å×½ºÆ® »ç¿ëÀÚ Ç®¿¡¼­ Facebook »ç¿ëÀÚ¸¦ »ó¼ÓÇؾßÇÕ´Ï´Ù. Å×½ºÆ® »ç¿ëÀÚ°¡ ÃæºÐÇÏÁö ¾ÊÀº °æ¿ì »õ °ÍµéÀÌ ÀÚµ¿À¸·Î »ý¼ºµË´Ï´Ù. À̸¦ À§Çؼ­´Â DJango-Facebook-Graph API°¡ ÇÊ¿äÇÕ´Ï´Ù. https://github.com/feinheit/django-facebook-graphroductÀÇ È¨ÆäÀÌÁö


Àå°í ½ºÄ³ Æúµù °ü·Ã ¼ÒÇÁÆ®¿þ¾î

Django-sprites.

Django App ¸ðµ¨Àº À̹ÌÁö ½ºÇÁ¶óÀÌÆ®¸¦ ó¸®ÇÏ¿© ¿©·¯ °³ÀÇ ÀÛÀº À̹ÌÁö°¡ÀÖ´Â ÆäÀÌÁö·Îµå¸¦ °¡¼ÓÈ­ÇÕ´Ï´Ù. ...

87

´Ù¿î·Îµå