46h ago Mike Loreipsum started following Monica Smith. 3 days ago at 7:58 pm - 10.06.2014 5h ago Chris Johnatan Overtunk started following Monica Smith. Yesterday 1:21 pm - 11.06.2014
2014å¹´04æ21æ¥19:45 ã«ãã´ãª éç¨ãããã管çç»é¢ã¨ã¯ ããã«ã¡ã¯ï¼ (æ ª)Zucks 㧠 Zucks Ad Network ã¨ããã¢ããããã¯ã¼ã¯ã·ã¹ãã ãéçºã»éç¨ãã¦ãã @brtriver ã§ãã å é±æ«ã« Symfonyã¦ã¼ã¶ã¼ä¼Â ä¸»å¬ ã®Â Symfony åå¼·ä¼ #9 ã ãã©ãã¯ãªã¨ã¤ãããã®ãååã®ãã¨éå¬ããã"管çç»é¢Webã¢ããªã±ã¼ã·ã§ã³ã®ã¢ã¯ã»ã¹ã³ã³ããã¼ã«" ã¨ãããé¡ã§è©±ããã¦ãã¾ãããã¹ã©ã¤ãã¯æ¢ã«å ¬éãã¦ãã¾ãããå 容ã«ã¤ãã¦è£è¶³ãã¤ã¤ "éç¨ãããã管çç»é¢" ã«ã¤ãã¦æ¸ãã¦ã¿ããã¨æãã¾ãã 管çç»é¢ã®ã¢ã¯ã»ã¹ã³ã³ããã¼ã« from Masao Maeda éç¨ãããã管çç»é¢ã¨ã¯ ä»åããããã£ããã¨ãã¾ã¨ããã¨ä»¥ä¸ã®2ç¹ã«ãªãã¾ãã URLã«å¿ è¦ãªæ å ±ãå«ã¾ãã¦ããã㨠ã¢ã¯ã»ã¹ã³ã³ããã¼ã« (ACL) ãã·ã³ãã«ãªãã¨Permane
ããã«ã¡ã¯ï¼ï¼ãã¡ãã£ã¢äºæ¥é¨ã®ã¾ããã§ãã æ¨ä»ãã¦ã§ããµã¤ããã¯ããã¨ããã¦ã§ããµã¼ãã¹ãã¢ããªãªã©ã¯ãä½ã£ã¦ããã¾ãã§ã¯ãªããä½ã£ã¦ããéç¨ãæ¹ä¿®ãç¶ãã¦æé·ããã¦ãããã¨ãåæã¨ããããã«ãªãã¾ããã ãã®éã«éè¦ãªå½¹å²ã¨ãªã管çç»é¢ã§ããã管çç»é¢ã£ã¦ä½ãã¨ãã«ä½ã®ãã¼ã¿ãåºãã¦ããã®ããã©ããã¶ã¤ã³ãããããã®ãè¿·ãã¾ããããçµæãããããæ©è½ã¨ãããããã¼ã¿ãçãè¾¼ãã 管çç»é¢ã«ãªã£ã¦ãã¾ããã¡ã§ãã ä»åã¯ããããªæ©ã¿ã解æ¶ã§ããããã«ãç®çã«åã£ã¦ãã使ãåæã®è¯ã管çç»é¢ãã¤ããããã®6ã¤ã®ã«ã¼ã«ããç´¹ä»ãããã¾ãã ã¦ã§ããµã¼ãã¹ã®ç®¡çç»é¢ãã¤ããä¸ã§å®ãã¹ã6ã¤ã®ã«ã¼ã« ã«ã¼ã«1ï¼ã¿ã¼ã²ããã¯1ã¤ã«çµãã¹ãï¼ æãå¹æçãªç®¡çç»é¢ã¨ã¯ãåä¸ã®ã¦ã¼ã¶ã¼ãã¿ã¼ã²ããã¨ãã¦ããã®ç®çããã¨ã«åºæã®ãã¼ã¿ã表示ãã¦ãããã®ã§ãã è¤æ°ã®ã¦ã¼ã¶ã¼ãã¿ã¼ã²ããã¨ãã¦ãã¾ãã¨ãã
Admin siteã便å©ã«ä½¿ããã Admin siteã§modelã®ãã¼ã¿ãäºãããç¨åº¦åé¡ã§ããã便å©ã ã¨æãã¾ãããã django.contrib.auth.models.Userã使ã£ã¦è©¦ãããã¨æãã¾ãã ä»æ§ Django 1.1以éã®ãã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ãã¦ãããã¨ã ã¦ã¼ã¶ä½æ ã¦ã¼ã¶ã¯ä»¥ä¸ã®è¨å®ã¨ãã¾ãã test1㯠is_staff = True, is_superuser = True test2㯠is_staff = True, is_superuser = False test3㯠is_staff = False, is_superuser = False admin.pyä½æ querysetãå©ç¨ããã°è¡¨ç¤ºãããã¼ã¿ãå¶å¾¡ã§ãã¾ãã admin.py from django.contrib import admin from django.co
Django1.1ã§ã¯adminã¢ããªãå¤§å¹ ã«æ¹åãããæ¡å¼µã1.0ã«æ¯ã¹ã¦å®¹æã«ãªãã¾ããã ModelAdminã«ãã¼ã¸ã追å ããå ´åã¯ããã¥ã¼ãã¡ã½ããã¨ãã¦è¿½å ãã¦ãããget_urlsã§urlpatternsã«URLã追å ãã¾ãã guestbookã¢ããªã®admin.py # coding:utf8 from django.core.exceptions import PermissionDenied from django.contrib import admin from django.views.generic.simple import direct_to_template from models import Greeting class GreetingAdmin(admin.ModelAdmin): def my_view(self, request): """
ã»ã¡ã³ãããªã³ã¯ããã©ã¦ã³ç®¡ãåããããåç´ãOMORIã«ãã§ãããæããã©ãé¡ã®åé³ã㯠ãããã©ç¦å²¡ã«åºæ¼ããç¸ã§åå¤ã«è¡ãã¾ããã 楽ããã£ãã®ã§ãã®æã®åçãã¢ãããã¼ããã¾ãã åå¤é§ ã®ãã¼ããã¹ã ææãã®ã°ãªãã ã«ãã®ä¸¸æã(ããããã£ã) ãã¬ãã·ã¥ã»ã¡ã³ã ã¨ããååã®é£²ã¿ç©(ããããã£ã)ãã¾+ãããã¹ã ã¼ã¸ã¼ã£ã½ãã£ãï¼ æ³¡ç³»â¦
ãã®blogããå¤è¨èªå¯¾å¿ã«ãã¦è±æã®è¨äºãæ¸ãäºã«ããã®ã§ãã©ããã¦ãæ稿ãã©ã¼ã ã«ã¹ãã«ãã§ãã¯ã欲ãããªãã¾ããã æ稿ãã©ã¼ã ã¯Djangoã®adminãã¼ã«ã使ã£ã¦ããã®ã§ãããã«ã¹ãã«ãã§ãã¯ãã¤ããããªãããªã¼ã¨æã£ã¦ãããããã ã¾ãã«ããããã®ãããã¾ããã Add spell checking to all the textarea elements on an admin page ãããããã¨ã¾ã£ããåãããã«ããã¨ãç°¡åã«adminãã¼ã«ã®textareaã«ã¹ãã«ãã§ãã¯æ©è½ãã¤ãã¾ãã ãã£ãããªã®ã§ãèªåã®æ¸ããã½ã¼ã¹ãå¼ããªãããæ訳ãã¦ããã¾ãã 1. GoogieSpellããã¦ã³ãã¼ããã¦ãdjangoããã¸ã§ã¯ãã®staticãã£ã¬ã¯ããªã«ããã¾ãã 2. urls.pyã®urlpatternsã«ä»¥ä¸ã追å ã #ã¹ãã«ãã§ã㯠url(r'^spe
django-fckconnectorãå©ç¨ãã¦ãDjangoã®ç®¡çç»é¢ã§FCKeditorã使ãæ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¾ãã 使ç¨ãã¦ããDjangoã¯SVNç(rev.6903)ã§ããdjango-fckconnectorã¯rev.9ã§ããFCKeditorã¯ver.2.5ã§ãã django-fckconnectorã®ã¤ã³ã¹ãã¼ã« SVNã§ããªãã¸ããªãããã§ãã¯ã¢ã¦ããã¦"python setup.py install"ãå®è¡ããããsite-packagesã«fckeditorãã£ã¬ã¯ããªãä½æãã¦ãã½ã¼ã¹ããã§ãã¯ã¢ã¦ããã¾ãã settings.pyã®å¿ è¦ãªé ç®ãè¨å®ãã MEDIA_ROOTã¨MEDIA_URLã¯ImageBrowserã®ãã¥ã¼ãæ¤ç´¢ãªã©ã§ä½¿ç¨ããã®ã§ãè¨å®ãã¦ããå¿ è¦ãããã¾ãã ä»åã¯ã以ä¸ã®ãããªè¨å®ã«ãªã£ã¦ãã¾ãã(BASE_DIRã«ã¤ãã¦ã¯ueblog
ã»ã»ã»ãããããããªãã£ããã ãã©ãããªãã«ã§ãã¦ãã¾ã£ã¦ããã®ããæ¹ã«å ¨ãèªä¿¡ããªãã¨ãã話ã§ãã - å°åã¨åºèããã£ã¦å¤å¯¾1ã®é¢ä¿ã¨ãã¾ãããå°å has many åºèãã§ãã ãã¼ãã«ã®ã«ã©ã ã«deleted_atã¨ããDateTimeåã®ã«ã©ã ãæããã¦ããã«å¤ãå ¥ã£ã¦ãããåé¤ãããã¬ã³ã¼ãã ã¨è¦ãªãã¾ãã ããããè«çåé¤ãã¨ãããã¨ã«ãã¾ãã ãã®å ´åãåé¤ããã¦ãªãã£ããNULLã«ãªãã®ã§ãåé¤ããã¦ããªãã¬ã³ã¼ãããã¹ã¦åå¾ãããã¨ãã¯ä»¥ä¸ã®ãããªSQLã使ãã¾ãã SELECT * FROM shops WHERE deleted_at IS NULL ä¸æ¹ã§æ¬å½ã«åé¤ããå ´åã¯ãç©çåé¤ãã¨ãããã¨ã«ãã¾ãã - ãã¦ã Djangoã®Adminãµã¤ãã§ã¯ç©çåé¤ãè¡ãããã®ã§ããã®æåãå¤æ´ãããã§ãã ããã¯ä»¥ä¸ã®ããã«ã¢ãã«ã¯ã©ã¹ã§delete()ã¡ã½ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}