settings読み込みエラー

    django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

環境変数にsettingsファイルを設定したら解決

    DJANGO_SETTINGS_MODULE
    mysite.settings
    http://www.djangoproject.jp/doc/ja/1.0/topics/settings.html
    https://docs.djangoproject.com/en/dev/topics/settings/