django.db.utils.NotSupportedError in sqlite why not supported in sqlite

Go to related migration file(automatically created in migrations directory after makemigrations command) and add atomic = False to the Migration class. Migration(migrations.Migration):. Then you can migrate the changes.

example code:

# Generated by Django 2.1.14 on 2019-12-02 07:07

from django.db import migrations, models


class Migration(migrations.Migration):
    atomic = False # **<<< HERE**

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='ebayLog',
            fields=[

If you still have the problem here is a example:

# Generated by Django 2.1 on 2018-08-16 21:22

from django.db import migrations


class Migration(migrations.Migration):
    atomic = False # <<<< THIS LINE

    dependencies = [
        ('shop', '0004_product_imgfeat'),
    ]

    operations = [
        migrations.RenameModel(
            old_name='Category',
            new_name='CategoryShop',
        ),
    ]

Tags:

Sqlite

Django