Tutor-Discovery(latest) Migrations Error =NameError: name ‘MIDDLEWARE’ is not defined

Hello,
I’m working with tutor-discovery which is latest(10.1.5). So I got this error below:

Starting tutor_local_forum_1 … done
Starting tutor_local_lms_1 … done
python manage.py migrate --noinput
Traceback (most recent call last):
File “manage.py”, line 15, in
execute_from_command_line(sys.argv)
File “/openedx/venv/lib/python3.5/site-packages/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/openedx/venv/lib/python3.5/site-packages/django/core/management/init.py”, line 308, in execute
settings.INSTALLED_APPS
File “/openedx/venv/lib/python3.5/site-packages/django/conf/init.py”, line 56, in getattr
self._setup(name)
File “/openedx/venv/lib/python3.5/site-packages/django/conf/init.py”, line 41, in _setup
self._wrapped = Settings(settings_module)
File “/openedx/venv/lib/python3.5/site-packages/django/conf/init.py”, line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/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 “/openedx/discovery/course_discovery/settings/tutor/production.py”, line 95, in
MIDDLEWARE = list(MIDDLEWARE)
> NameError: name ‘MIDDLEWARE’ is not defined
> Makefile:59: recipe for target ‘migrate’ failed
> make: *** [migrate] Error 1
Error: Command failed with status 2: docker-compose -f /home/edx/.local/share/tutor/env/local/docker-compose.yml -f /home/edx/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/edx/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm discovery-job sh -e -c make migrate

am I doing something wrong, or ??

Thank you in advance

Murat

Hi again,
Uninstalled previews version, and installed new one with tag:

$ pip3 install tutor-discovery==10.1.5

than

$ tutor local init --limit discovery

Now all migrations done, and working :slight_smile: