Here is the results of the two command (spoiler : I get the same error with the two… mayble it’s not due to migrate ?) :
manage.py@djangoProject > showmigrations
bash -cl "/home/jbal/PycharmProjects/djangoProject/venv/bin/python /opt/pycharm-professional/plugins/python/helpers/pycharm/django_manage.py showmigrations /home/jbal/PycharmProjects/djangoProject"
Tracking file by folder pattern: migrations
Traceback (most recent call last):
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: ERREUR: la relation « Citatio_quote » n'existe pas
LINE 1: ...tatio_quote"."id", "Citatio_quote"."content" FROM "Citatio_q...
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/pycharm-professional/plugins/python/helpers/pycharm/django_manage.py", line 52, in <module>
run_command()
File "/opt/pycharm-professional/plugins/python/helpers/pycharm/django_manage.py", line 46, in run_command
run_module(manage_file, None, '__main__', True)
File "/usr/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/jbal/PycharmProjects/djangoProject/manage.py", line 22, in <module>
main()
File "/home/jbal/PycharmProjects/djangoProject/manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/base.py", line 368, in execute
self.check()
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/base.py", line 392, in check
all_issues = checks.run_checks(
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/checks/registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 408, in check
for pattern in self.url_patterns:
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 589, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 582, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/jbal/PycharmProjects/djangoProject/djangoProject/urls.py", line 19, in <module>
from Citatio import views
File "/home/jbal/PycharmProjects/djangoProject/Citatio/views.py", line 7, in <module>
from .forms import QuoteForm, DeleteQuotesForm
File "/home/jbal/PycharmProjects/djangoProject/Citatio/forms.py", line 12, in <module>
class DeleteQuotesForm(forms.Form):
File "/home/jbal/PycharmProjects/djangoProject/Citatio/forms.py", line 14, in DeleteQuotesForm
picked = forms.MultipleChoiceField(choices=Choices, widget=forms.CheckboxSelectMultiple)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/forms/fields.py", line 780, in __init__
self.choices = choices
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/forms/fields.py", line 797, in _set_choices
value = list(value)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/query.py", line 269, in __len__
self._fetch_all()
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/query.py", line 1303, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/query.py", line 142, in __iter__
return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1106, in results_iter
results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1154, in execute_sql
cursor.execute(sql, params)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
return super().execute(sql, params)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/home/jbal/PycharmProjects/djangoProject/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/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: ERREUR: la relation « Citatio_quote » n'existe pas
LINE 1: ...tatio_quote"."id", "Citatio_quote"."content" FROM "Citatio_q...
^
And :
manage.py@djangoProject > migrate --plan
bash -cl "/home/jbal/PycharmProjects/djangoProject/venv/bin/python /opt/pycharm-professional/plugins/python/helpers/pycharm/django_manage.py migrate --plan /home/jbal/PycharmProjects/djangoProject"
Tracking file by folder pattern: migrations
Traceback (most recent call last):
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: ERREUR: la relation « Citatio_quote » n'existe pas
LINE 1: ...tatio_quote"."id", "Citatio_quote"."content" FROM "Citatio_q...
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/pycharm-professional/plugins/python/helpers/pycharm/django_manage.py", line 52, in <module>
run_command()
File "/opt/pycharm-professional/plugins/python/helpers/pycharm/django_manage.py", line 46, in run_command
run_module(manage_file, None, '__main__', True)
File "/usr/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/jbal/PycharmProjects/djangoProject/manage.py", line 22, in <module>
main()
File "/home/jbal/PycharmProjects/djangoProject/manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute
output = self.handle(*args, **options)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped
res = handle_func(*args, **kwargs)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 75, in handle
self.check(databases=[database])
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/management/base.py", line 392, in check
all_issues = checks.run_checks(
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/checks/registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 408, in check
for pattern in self.url_patterns:
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 589, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 582, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/jbal/PycharmProjects/djangoProject/djangoProject/urls.py", line 19, in <module>
from Citatio import views
File "/home/jbal/PycharmProjects/djangoProject/Citatio/views.py", line 7, in <module>
from .forms import QuoteForm, DeleteQuotesForm
File "/home/jbal/PycharmProjects/djangoProject/Citatio/forms.py", line 12, in <module>
class DeleteQuotesForm(forms.Form):
File "/home/jbal/PycharmProjects/djangoProject/Citatio/forms.py", line 14, in DeleteQuotesForm
picked = forms.MultipleChoiceField(choices=Choices, widget=forms.CheckboxSelectMultiple)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/forms/fields.py", line 780, in __init__
self.choices = choices
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/forms/fields.py", line 797, in _set_choices
value = list(value)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/query.py", line 269, in __len__
self._fetch_all()
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/query.py", line 1303, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/query.py", line 142, in __iter__
return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1106, in results_iter
results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1154, in execute_sql
cursor.execute(sql, params)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute
return super().execute(sql, params)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/home/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/home/jbal/PycharmProjects/djangoProject/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/jbal/PycharmProjects/djangoProject/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: ERREUR: la relation « Citatio_quote » n'existe pas
LINE 1: ...tatio_quote"."id", "Citatio_quote"."content" FROM "Citatio_q...
^
Process finished with exit code 1