Forums

IndexError

I am getting this error when I try run Python3 manage.py makemigrations

Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/home/ccvCoding/.virtualenvs/mysite-virtualenv/lib/python3.8/site-packages/django/core/management/init.py", line 419, in execute_from_command_line utility.execute() File "/home/ccvCoding/.virtualenvs/mysite-virtualenv/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute django.setup() File "/home/ccvCoding/.virtualenvs/mysite-virtualenv/lib/python3.8/site-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/home/ccvCoding/.virtualenvs/mysite-virtualenv/lib/python3.8/site-packages/django/apps/registry.py", line 91, in populate app_config = AppConfig.create(entry) File "/home/ccvCoding/.virtualenvs/mysite-virtualenv/lib/python3.8/site-packages/django/apps/config.py", line 206, in create if mod_path and cls_name[0].isupper(): IndexError: string index out of range

It looks like what you have in your django settings that you run your management command with does not match reality of your web app. Do you have multiple settings files?

i do not have any other settings files, do you have any idea of what kind of changes could produce this?

Do INSTALLED_APPS match your django apps?