Traceback (most recent call last):

 "/home/ubuntu/virtualenvs/venv-2.7.10/lib/python2.7/site-packages/nose/loader.py", line 523, in makeTest
return self._makeTest(obj, parent)

 "/home/ubuntu/virtualenvs/venv-2.7.10/lib/python2.7/site-packages/nose/loader.py", line 568, in _makeTest
obj = transplant_class(obj, parent.__name__)

 "/home/ubuntu/virtualenvs/venv-2.7.10/lib/python2.7/site-packages/nose/util.py", line 642, in transplant_class
class C(cls):

 "/home/ubuntu/virtualenvs/venv-2.7.10/lib/python2.7/site-packages/django/db/models/base.py", line 103, in __new__
"application was loaded. " % (module, name))RuntimeError: Model class nose.util.C doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. 
Traceback (most recent call last):


 "/usr/local/bin/flask", line 8, in <module>

sys.exit(main())


 "/usr/local/lib/python3.8/dist-packages/flask/cli.py", line 967, in main

cli.main(args=sys.argv[1:], prog_name="python -m flask" if as_module else None)


 "/usr/local/lib/python3.8/dist-packages/flask/cli.py", line 586, in main

return super(FlaskGroup, self).main(*args, **kwargs)


 "/usr/lib/python3/dist-packages/click/core.py", line 717, in main

rv = self.invoke(ctx)


 "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke

return callback(*args, **kwargs)


 "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func

return f(get_current_context(), *args, **kwargs)


 "/usr/local/lib/python3.8/dist-packages/flask/cli.py", line 425, in decorator

with __ctx.ensure_object(ScriptInfo).load_app().app_context():


 "/usr/local/lib/python3.8/dist-packages/flask/cli.py", line 388, in load_app

app = locate_app(self, import_name, name)


 "/usr/local/lib/python3.8/dist-packages/flask/cli.py", line 240, in locate_app

__import__(module_name)


 "/mnt/c/Users/haase/Documents/VL/recruit_app/run.py", line 1, in <module>

from web import app, db


 "/mnt/c/Users/haase/Documents/VL/recruit_app/web/__init__.py", line 29, in <module>

from web import routes, models


 "/mnt/c/Users/haase/Documents/VL/recruit_app/web/routes.py", line 5, in <module>

from recruit_app import data


 "/mnt/c/Users/haase/Documents/VL/recruit_app/recruit_app.py", line 9, in <module>

download_candidates(2000)


 "/mnt/c/Users/haase/Documents/VL/recruit_app/download_data.py", line 81, in download_candidates

db.session.commit()


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/scoping.py", line 163, in do

return getattr(self.registry(), name)(*args, **kwargs)


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1046, in commit

self.transaction.commit()


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 504, in commit

self._prepare_impl()


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 483, in _prepare_impl

self.session.flush()


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 2540, in flush

self._flush(objects)


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 2682, in _flush

transaction.rollback(_capture_exception=True)


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__

compat.raise_(


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_

raise exception


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 2642, in _flush

flush_context.execute()


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 422, in execute

rec.execute(self)


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 586, in execute

persistence.save_obj(


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 239, in save_obj

_emit_insert_statements(


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 1135, in _emit_insert_statements

result = cached_connections[connection].execute(


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1011, in execute

return meth(self, multiparams, params)


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection

return connection._execute_clauseelement(self, multiparams, params)


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1124, in _execute_clauseelement

ret = self._execute_context(


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context

self._handle_dbapi_exception(


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1510, in _handle_dbapi_exception

util.raise_(


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_

raise exception


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context

self.dialect.do_execute(


 "/home/emil/.local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute

cursor.execute(statement, parameters)
sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: candidate.name
