0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Djangoでdjango.core.exceptions.ImproperlyConfiguredエラーの解消法

Posted at

はじめに

Python(Django)のFWのOscarの環境構築をしていて
下記のエラーにハマったので解消法をまとめた

django.core.exceptions.ImproperlyConfigured: The HAYSTACK_CONNECTIONS setting is required.

前提

下記が追加されていること

setting.py
INSTALLED_APPS = [
        ...
    'django.contrib.sites',
        ...
]

解消法

setting.pyに下記を追加

HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
    },
}

単純な設定漏れ(というか設定途中)だったので凡ミスでした
runserverでローカルサーバを起動しながらsetting.pyを編集していたので
不慣れた時は、まとめて設定した後にサーバ起動した方がいいです

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?