アプリなどを開発するブログ

React Native / Swift / Ruby on Railsなどの学習メモ。


Django1.5でINSTALLED_APPSのデフォルト値からdjango.contrib.sitesが消えた

Django1.4以前の設定ファイルを使いまわそうとして、こういうエラーが出ました。

You're using the Django "sites framework" without having set the SITE_ID setting. Create a site in your database and set the SITE_ID setting to fix this error.

表題の通りなので、'django.contrib.sites' をINSTALLED_APPSから消せばOKでした。