I have created a Django module. In this module, a model related to the Django user model exists. I have used the module already. it was correct and worked successfully. now I would like to deploy my project to the server.
I clone the project to the server, run make the migration, and then run the runserver command. all things are right.
but when I run the 'manage.py test' command. it shows below errors
File "/home/rasoul/Desktop/debug/backend/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/home/rasoul/Desktop/debug/backend/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
File "/home/rasoul/Desktop/debug/backend/.venv/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/home/rasoul/Desktop/debug/backend/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
File "/home/rasoul/Desktop/debug/backend/.venv/lib/python3.8/site-packages/elasticapm/instrumentation/packages/dbapi2.py", line 210, in execute
return self._trace_sql(self.__wrapped__.execute, sql, params)
File "/home/rasoul/Desktop/debug/backend/.venv/lib/python3.8/site-packages/elasticapm/instrumentation/packages/dbapi2.py", line 244, in _trace_sql
result = method(sql, params)
django.db.utils.ProgrammingError: relation "user_user" does not exist
Aucun commentaire:
Enregistrer un commentaire