Google Code Archive - Long-term storage for Google Code Project Hosting.
ãªããã¬ãã¥ã¼ãå¾
ã£ã¦ã人ãããã¨ããããªãã¨ããããã¾ã使ãè¾¼ãã§ã¿ã¦ã¯ãªããã©ã¨ããããç´¹ä»ã
ããã使ããã¨ã§ä½ãå¬ããã
GAEã®Djangoã§ä½¿ããªãã£ã以ä¸ã®ãã®ã使ãã¾ããï¼ä»ã«ãããã¨æã
- contenttypes(GenericRelationã¯ã¾ã 使ããªã)
- auth
- admin
- flatpages
- generic view(ragendja)
- manage.py
ä¸çªå¤§ããªç¹ã¯ãauthã¨adminã使ãããã¨ã ã¨æãã¾ãã
adminã¯Djangoã®ä¸ã§ãéè¦ãªæ©è½ãªã®ã§ãããã使ãããã¨ã§éçºãéç¨ã¯ããªã楽ã«ãªãã¾ãã
contenttypesã§ã¯ã¾ã GenericForeignKeyã¯ä½¿ããªãããã§ããããããæ±ç¨ã®ã¢ããªã±ã¼ã·ã§ã³ãæ¸ãããã«ã¯å¿
é ãªã®ã§å¬ããã§ãã
manage.pyã®ã³ãã³ãã¯Djangoã¨å¤å°ç°ãªãã¾ãããrunserver/shell/test/dumpdataãªã©ã使ãã¦ã追å ã§ããã¤ãã®ä¾¿å©ãªã³ãã³ããããã¾ãã
ã¾ããragendjaã¨ããdjangoã®ã¢ããªã±ã¼ã·ã§ã³ãå
¥ã£ã¦ãããããã«ã便å©ãªæ©è½(é¢æ°)ãããããããã¾ãã
ã¡ãªã¿ã«Djangoã®Modelã¯ä½¿ãã¾ãããAppEngineã®Modelã使ç¨ãããã¨ã«ãªãã¾ãã
使ãæ¹
è±èªã§ããããã¥ã¡ã³ããããã¾ãã
http://code.google.com/p/app-engine-patch/wiki/GettingStarted
以ä¸ãããµã³ãã«ããã¦ã³ãã¼ããã¦ãã¾ãã
http://code.google.com/p/app-engine-patch/
manage.py runserverã§ãã®ã¾ã¾åããã¾ãã
èªåã®ããã¸ã§ã¯ãã«çµã¿è¾¼ãã«ã¯ãcommon, manage.pyãã³ãã¼ãã¦urls.pyã¨settings.pyãä½æããå¿
è¦ãããã¾ãã
ãããªäººã«ãããã
æ°ã«ããã¹ã
ä»å¾GAEãã©ããªããã¯ãããã¾ãããããã¨ãã°GAEå´ã§Djangoã®ãµãã¼ãããã£ã¨å¼·åã«ãªãã¨ããã¯å¿
è¦ãªããªãããããã¾ããã
ã¾ããä»ã¯ä½è
ã®æ¹ãä¸äººï¼ã§ã²ãããéçºãã¦ããã¿ãããªã®ã§ããã®äººãææ¾ãã¨ã¡ã³ããæ¢ã¾ã£ã¦ãã¾ãããããã¾ãããããããéã£ãããã¦æ¯æ´ããã¨è¯ãã¨æãã¾ãã
ã¾ã¨ã
Adminã使ããããããã¨ã§GAEã®å¯è½æ§ãåºããã®ã§ãæ¯é使ã£ã¦ã¿ãã¹ãã