From bb7f6d999a6746e4f14ab81b5f91281dedc2918c Mon Sep 17 00:00:00 2001 From: nehemiah jacob Date: Mon, 26 Sep 2016 11:20:58 +1000 Subject: [PATCH] wiki.core doesn't have settings.py; In fact wiki.conf does Addressing: Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/Users/neo/.virtualenvs/pp_new/lib/python3.5/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line utility.execute() File "/Users/neo/.virtualenvs/pp_new/lib/python3.5/site-packages/django/core/management/__init__.py", line 327, in execute django.setup() File "/Users/neo/.virtualenvs/pp_new/lib/python3.5/site-packages/django/__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/Users/neo/.virtualenvs/pp_new/lib/python3.5/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/Users/neo/.virtualenvs/pp_new/lib/python3.5/site-packages/django/apps/config.py", line 123, in create import_module(entry) File "/Users/neo/.virtualenvs/pp_new/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 665, in exec_module File "", line 222, in _call_with_frames_removed File "/Users/neo/GDrive/myCoding/barangaroo-digital-experience-partner-portal/website/barangaroo/plugins/wiki/search/__init__.py", line 2, in from wiki.plugins.haystack.search_indexes import ArticleIndex File "/Users/neo/.virtualenvs/pp_new/lib/python3.5/site-packages/wiki/plugins/haystack/__init__.py", line 3, in from wiki.core import settings ImportError: cannot import name 'settings' Process finished with exit code 1 --- wiki/plugins/haystack/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki/plugins/haystack/__init__.py b/wiki/plugins/haystack/__init__.py index ae67b3a5..7d347f3c 100644 --- a/wiki/plugins/haystack/__init__.py +++ b/wiki/plugins/haystack/__init__.py @@ -1,6 +1,6 @@ from __future__ import absolute_import from __future__ import unicode_literals -from wiki.core import settings +from wiki.conf import settings from wiki.core import permissions from wiki import models -- 2.45.2