Tive o erro: Model class apps.receitas.models.Receita doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS, usando o pycharm
Tive o erro: Model class apps.receitas.models.Receita doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS, usando o pycharm
Caso alguém tenha o mesmo problema, resolvi mudando o nome dos apps no arquivo apps.py
receitas apps.py
from django.apps import AppConfig
class ReceitasConfig(AppConfig):
name = 'apps.receitas'
usuarios apps.py
from django.apps import AppConfig
class UsuariosConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'apps.usuarios'