Estoy tratando de implementar mi código en heroku. Durante la implementación, completo todos los pasos, pero aparece un error al migrar
intento estos comandos
heroku run python manage.py makemigrations account
Mientras ejecuto el comando anterior, obtengo
account/migrations/0001_initial.py - Create model User
pero al tratar de migrar
lo intento
heroku run python manage.py migrate account
me sale error
raise ValueError("Dependency on app with no migrations: %s" % key[0]) ValueError: Dependency on app with no migrations: account
yo también intento
heroku run python manage.py makemigrations heroku run python manage.py migrate
En este momento también recibo el mismo error.
el proyecto se ejecuta correctamente en localhost sin ningún error
Soy nuevo en heroku, por favor, cualquiera puede ayudar con instrucciones completas.
Primero intente ejecutar el comando heroku run python manage.py showmigrations
para ver qué migraciones se han realizado. Si devuelve una lista vacía, debe ejecutar heroku run python manage.py migrate
para migrar las migraciones existentes.
Después de eso, puede seguir los procedimientos normales en el tutorial.
python manage.py makemigrations python manage.py migrate
mi caso
(heroku.com)
panel de heroku
↓
aplicación
↓
desplegar
↓
Github
↓
Despliegue manual
pude migrar