{"id":1834,"date":"2009-11-05T00:34:51","date_gmt":"2009-11-04T15:34:51","guid":{"rendered":"http:\/\/fukata.org\/?p=1834"},"modified":"2017-08-11T22:59:08","modified_gmt":"2017-08-11T22:59:08","slug":"gae-p-internationalization-3","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/1834\/","title":{"rendered":"[GAE\/P]\u56fd\u969b\u5316\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u307e\u3057\u305f\u3000\u301c\u305d\u306e\uff13\u301c"},"content":{"rendered":"

\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304d\u56fd\u969b\u5316\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n

\u524d\u306e\u8a18\u4e8b\u3067\u66f8\u3044\u3066\u3044\u305f\u300cEnvironment variable DJANGO_SETTINGS_MODULE is undefined.\u300d\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001\u3042\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u5f8c\u3082\u4f55\u5ea6\u304b\u767a\u751f\u3057\u3066\u304a\u308a\u3001\u4eca\u65e5\u3001GAE\u4e0a\u306b\u30a2\u30c3\u30d7\u3057\u305f\u30a2\u30d7\u30ea\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u3068\u3001\u4e00\u6642\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u305f\u72b6\u614b\u3067\u653e\u7f6e\u3057\u3001\u6539\u3081\u3066\u64cd\u4f5c\u3059\u308b\u3068Ajax\u90e8\u5206\u306e\u901a\u4fe1\u3067\u4e0a\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n

\u305d\u308c\u3067\u3001\u8272\u3005\u8abf\u3079\u3066\u3044\u308b\u3068import\u306e\u9806\u756a\u304c\u554f\u984c\u3060\u3063\u305f\u3088\u3046\u3067\u3001\u8a66\u3057\u3066\u307f\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u305d\u306e\u4fee\u6b63\u5185\u5bb9\u3092\u66f8\u3044\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u25a0\u7de8\u96c6\u524d<\/p>\n

\r\nfrom django.utils import translation\r\nfrom google.appengine.ext import webapp\r\nfrom org.fukata.mapshare.system.utils.cookies import Cookies\r\nimport os\r\nfrom django.conf import settings\r\n\r\nos.environ.__setitem__('DJANGO_SETTINGS_MODULE', 'conf.settings')\r\n# Force Django to reload settings\r\nsettings._target = None\r\n<\/pre>\n

\u25a0\u7de8\u96c6\u5f8c<\/p>\n

\r\nimport os\r\nfrom google.appengine.ext import webapp\r\nfrom google.appengine.ext.webapp import template\r\nfrom django.utils import translation\r\nfrom org.fukata.mapshare.system.utils.cookies import Cookies\r\nfrom django.conf import settings\r\n\r\nos.environ.__setitem__('DJANGO_SETTINGS_MODULE', 'conf.settings')\r\n# Force Django to reload settings\r\nsettings._target = None\r\n<\/pre>\n

\u5168\u4f53\u7684\u306b\u9806\u5e8f\u3082\u5165\u308c\u66ff\u308f\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u5206\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001<\/p>\n

\r\nfrom django.utils import translation\r\n<\/pre>\n

\u306e\u524d\u306b<\/p>\n

\r\nfrom google.appengine.ext import webapp\r\nfrom google.appengine.ext.webapp import template\r\n<\/pre>\n

\u3092\u8aad\u307f\u8fbc\u3080\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n

\u307e\u305f\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3088\u3046\u3067\u3057\u305f\u3089\u8ffd\u8a18\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u308c\u3067\u3001\u6700\u5f8c\u3067\u3042\u3063\u3066\u307b\u3057\u3044\u3002\u3002\u3002\uff08\u76f4\u63a5\u7684\u306a\u539f\u56e0\u3092\u8abf\u3079\u308d\u3088\u3002\u3002\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"

\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304d\u56fd\u969b\u5316\u306b\u3064\u3044\u3066\u3067\u3059\u3002 \u524d\u306e\u8a18\u4e8b\u3067\u66f8\u3044\u3066\u3044\u305f\u300cEnvironment variable DJANGO_SETTINGS_MODULE is undefined.\u300d\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001\u3042 … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[403,404,1086],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/1834"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=1834"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/1834\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=1834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=1834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=1834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}