Проект работает на моем локальном хосте, но когда я пытаюсь развернуть железную Heroku, он не обнаруживает пользовательскую модель AbstracBase. Он создает модель профиля, но когда я пытаюсь перенести изменения, он выдает
Makekigrations
(venv) C:\Users\KIIT\Documents\Django\Touch>heroku run python manage.py makemigrations
Running python manage.py makemigrations on ⬢ api-touch... up, run.1133 (Free)
Migrations for 'account':
account/migrations/0001_initial.py
- Create model Profile
Migrations for 'questions':
questions/migrations/0001_initial.py
- Create model Question
Migrations for 'answers':
answers/migrations/0001_initial.py
- Create model Answer
Миграция
(venv) C:\Users\KIIT\Documents\Django\Touch>heroku run python manage.py migrate
Running python manage.py migrate on ⬢ api-touch... up, run.7280 (Free)
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/loader.py", line 166, in check_key
return self.graph.root_nodes(key[0])[0]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 21, in <module>
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 369, in execute
output = self.handle(*args, **options)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped
res = handle_func(*args, **kwargs)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 86, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/executor.py", line 18, in __init__
self.loader = MigrationLoader(self.connection)
File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/loader.py", line 49, in __init__
self.build_graph()
File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/loader.py", line 227, in build_graph
self.add_external_dependencies(key, migration)
File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/loader.py", line 191, in add_external_dependencies
parent = self.check_key(parent, key[0])
File "/app/.heroku/python/lib/python3.6/site-packages/django/db/migrations/loader.py", line 173, in check_key
raise ValueError("Dependency on app with no migrations: %s" % key[0])
ValueError: Dependency on app with no migrations: account
Я пробовал python manage.py makemigrtaions account, но это тоже не работает.
(venv) C:\Users\KIIT\Documents\Django\Touch>python manage.py makemigrations accounts
No installed app with label 'accounts'.
Есть идеи, как это решить?