Opened 6 years ago

Closed 6 years ago

#30075 closed Cleanup/optimization (fixed)

Better error message for "App 'bar.foo' could not be found. Is it in INSTALLED_APPS?"

Reported by: Sven R. Kunze Owned by: nobody
Component: Core (Management commands) Version: 1.11
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

# settings.py
INSTALLED_APPS = ['bar.foo']

manage.py makemigrations bar.foo
App 'bar.foo' could not be found. Is it in INSTALLED_APPS?

# two hours later, let's try something else
manage.py makemigrations foo
Migrations for 'foo':
  bar/0001_initial.py
    - Create model blub
# huh?

Change History (2)

comment:1 by Tim Graham, 6 years ago

Component: UtilitiesCore (Management commands)

Please test with Django master. The situation changed after c3c7d15c34d6174ff25a49d7c9a57da140769567 and this may be fixed.

comment:2 by Tim Graham, 6 years ago

Resolution: fixed
Status: newclosed

On master:

$ python manage.py makemigrations bar.foo
No installed app with label 'bar.foo'. Did you mean 'foo'?
Note: See TracTickets for help on using tickets.
Back to Top