2014-07-08から1日間の記事一覧
'Settings' object has no attribute 'DATABASE_ENGINE'のエラーがブラウザに発生。URL: http://south.aeracode.org/ticket/460 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', }, } となってるのを DATABASE_ENGINE = 'd…
URL: http://stackoverflow.com/questions/5447494/best-way-to-remove-an-item-from-a-python-dictionary を参考にし、 for key, item in my_dic.items(): print item, key if item == {}: print key del my_dic[key] にした、 my_dicは今回の辞書Pythonでi…