Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper

fn(*args, **kwargs)


 "/usr/local/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 140, in inner_run

handler = self.get_handler(*args, **options)


 "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/runserver.py", line 27, in get_handler

handler = super().get_handler(*args, **options)


 "/usr/local/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 65, in get_handler

return get_internal_wsgi_application()


 "/usr/local/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 44, in get_internal_wsgi_application

return import_string(app_path)


 "/usr/local/lib/python3.6/site-packages/django/utils/module_loading.py", line 17, in import_string

module = import_module(module_path)


 "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 994, in _gcd_import


 "<frozen importlib._bootstrap>", line 971, in _find_and_load


 "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 665, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 678, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/app/application/wsgi.py", line 12, in <module>

from configurations.wsgi import get_wsgi_application


 "/usr/local/lib/python3.6/site-packages/configurations/wsgi.py", line 14, in <module>

application = get_wsgi_application()


 "/usr/local/lib/python3.6/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application

return WSGIHandler()


 "/usr/local/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 140, in __init__

self.load_middleware()


 "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 39, in load_middleware

mw_instance = middleware(handler)
TypeError: __init__() takes 1 positional argument but 2 were given

Traceback (most recent call last):


 "train_classes_v4.py", line 643, in <module>

_main(parser.parse_args())


 "train_classes_v4.py", line 467, in _main

model.add(base_model)


 "/home/xxx/.local/lib/python3.5/site-packages/keras/engine/sequential.py", line 131, in add

'Found: ' + str(layer))
TypeError: The added layer must be an instance of class Layer. Found: <tensorflow.python.keras.engine.training.Model object at 0x7fa419d7a5f8>
