PeterMwangiNjoroge / inventory

5 stars 3 forks source link

python manage.py makemigrations not working #1

Open gasper101 opened 8 months ago

gasper101 commented 8 months ago

I have been following your tutorial on how to create a django app on here: https://mwass.hashnode.dev/developing-an-inventory-management-system-with-django-and-bootstrap

But about halfway into the project I get an error when running :

python manage.py makemigrations and python manage.py migrate

This is the error:

RuntimeError: Model class inventory.models.UserProfile doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

What have I done wrong? I am using windows 11, Python 3.10.6, django 5.0.2

PeterMwangiNjoroge commented 6 months ago

I'll investigate and get back to you.