Àå°í - µî±Þ

DjangoÀÇ ÀϹÝÀûÀÎ µî±Þ
Áö±Ý ´Ù¿î·Îµå

Àå°í - µî±Þ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • David Cramer
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://code.google.com/u/dcramer/

Àå°í - µî±Þ ű×


Àå°í - µî±Þ ¼³¸í

DjangoÀÇ ÀϹÝÀûÀÎ µî±Þ Django-Ratings´Â Django À¥ ÇÁ·¹ÀÓ ¿öÅ©¸¦À§ÇÑ ÀϹÝÀûÀÎ µî±Þ ¸ðµâÀÔ´Ï´Ù. Çʵå ÀÚü´Â ÃÖÀûÈ­ ÀÌÀ¯·Î ¸ðµ¨¿¡ µÎ °³ÀÇ Ãß°¡ Çʵ带 Ãß°¡ÇÕ´Ï´Ù. _score ¹× _votes Çʵ带 Ãß°¡ÇÕ´Ï´Ù. _installationsvn üũ ¾Æ¿ô http://django-ratings.googlecode.com/svn/trunk/ django-ratingssudo python setup.py instally pyson setup.py instally ±×·± ´ÙÀ½ install_apps = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'djangoratings',)¿¡ djangoratings¸¦ ¸¶Ä§³» Ãß°¡ÇؾßÇÕ´Ï´Ù. distonÀÇ µð·ºÅ丮¿¡¼­ python manage.py syncdbÀ» ½ÇÇàÇÏ¿© table.usagefrom djangoratings °¡Á® ¿À±â ratingfieldrating_choices = ((1, 'up'), (-1, '´Ù¿î'), Ŭ·¡½º mymodel (models.model) : µî±Þ = Æò°¡ Çʵå (¼±Åà = rating_choices) anyangoratings¿¡¼­ anonymousratingfieldten_point_scale = Ŭ·¡½º mymodel (models.model) : µî±Þ = anonymouswield (¼±Åà »çÇ×) = TEN_POINT_SCALE) ¹× votes¸¦ Ãß°¡ÇÏ´Â °Íµµ °£´ÜÇÕ´Ï´Ù. myInstance.rating.add (score = 1, user = request.user, ip_address = request.meta ) votes¸¦ °Ë»öÇÏ´Â °Í°ú °°½À´Ï´Ù. myInstance_ai.get_rating (request.user, request.meta ) °´Ã¼ µî±Þ¿¡ ´ëÇÑ Á¤º¸¿¡ ´ëÇÑ Á¤º¸ ¾×¼¼½ºµµ ½±½À´Ï´Ù. # ÀÌ°ÍÀº DatabasEmyInstanceÀÔ´Ï´Ù. votesmyInstance.Rating.ScorePotentially (¾ÆÁ÷) Á¡¼ö ¹× ÅõÇ¥¸¦ Äõ¸® ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. (ÇöÀçÀÌ ÀÛ¾÷À» ¼öÇà ÇÒ ¼ö ¾ø½À´Ï´Ù. ´ë½ÅÀÌ ÀÛ¾÷À» ¼öÇà ÇÒ ¼ö ¾ø½À´Ï´Ù. -rating__score ') ¿ä±¸ »çÇ× : ¡¤ Àå°í ¡¤ ÆÄÀ̽ã


Àå°í - µî±Þ °ü·Ã ¼ÒÇÁÆ®¿þ¾î

Æú¶ó ºí·Î±×

PHPÀÇ register_globals off ¹× safe_mode·Î ÀÛµ¿ÇÏ´Â ½±°Ô ±¸¼º °¡´ÉÇÑ ÀÓº£µðµå WebLog ½Ã½ºÅÛÀ» ½±°Ô ±¸¼º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ...

147

´Ù¿î·Îµå