Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

274
Vistas
ValueError: Dependency on app with no migrations: account

I am trying to deploy my code in heroku. While deploying i complete all the steps but i get error while migrate

i try these command

heroku run python manage.py makemigrations account

While running above command i get

account/migrations/0001_initial.py
    - Create model User

but while trying to migrate

I try

heroku run python manage.py migrate account

i get error

 raise ValueError("Dependency on app with no migrations: %s" % key[0])
ValueError: Dependency on app with no migrations: account

i also try

heroku run python manage.py makemigrations
heroku run python manage.py migrate

At this time also i get same error

the project is running successfully in localhost with out any error

I am new to heroku please anyone can help with full instruction

9 months ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

First try to run command heroku run python manage.py showmigrations to see what migrations have been done. If it returns an empty list, you have to run heroku run python manage.py migrate to migrate the existing migrations.

After that, you can follow the normal procedures in tutorial

python manage.py makemigrations
python manage.py migrate
9 months ago · Santiago Trujillo Denunciar

0

my case

(heroku.com)
heroku dashboard
↓
app
↓
deploy
↓
Github
↓
Manual deploy

I was able to migrate

9 months ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.