[Answered ]-Djongo not writing the table using manage.py migrate

1👍

 pip3 install sqlparse==0.2.4

Reference: https://github.com/nesdis/djongo/issues/505

👤Marcel

0👍

Please help to make sure you import your module in the setting file

# Django apps go here.
DJANGO_APPS = [
    # Default Django apps:
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # Admin
    'django.contrib.admin',

    # Local apps
    'accounts',
]

And make sure you run makemigrations to generate migrations file first, then run migrate database

python manage.py makemigrations

Leave a comment