Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy on Heroku problem #270

Open
Sinanaltundag opened this issue Jul 30, 2022 · 1 comment
Open

Deploy on Heroku problem #270

Sinanaltundag opened this issue Jul 30, 2022 · 1 comment

Comments

@Sinanaltundag
Copy link

Sinanaltundag commented Jul 30, 2022

when I run makemigrations on my project, it create a migration file "0012_alter_city_id_alter_country_id_alter_region_id_and_more.py", and when I use a foreignkey for make relation to my models it create a dependency to the new migration file above. it runs well on local. But when I deploy on Heroku, Heroku do not give permission to use "makemigration" so there is not dependency file "0012_alter_city_id_alter_country_id_alter_region_id_and_more.py".
in file

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('cities_light', '0011_alter_city_country_alter_city_region_and_more'),
    ]

    operations = [
        migrations.AlterField(
            model_name='city',
            name='id',
            field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='country',
            name='id',
            field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='region',
            name='id',
            field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='subregion',
            name='id',
            field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
    ]

I sent a pull request about this issue

@marianoeramirez
Copy link
Collaborator

Hi @Sinanaltundag can you check with the last version deployed on pypi?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants