#24848: makemigrations fails with 'ValueError: Dependency on unknown app' when
migrations module exists without __init__.py
----------------------------+------------------------------------
Reporter: Ernest0x | Owner: knbk
Type: Bug | Status: assigned
Component: Migrations | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+------------------------------------
Changes (by knbk):
* status: new => assigned
* needs_better_patch: => 0
* needs_tests: => 0
* owner: nobody => knbk
* needs_docs: => 0
* stage: Unreviewed => Accepted
Comment:
The problem is that, if you hit
https://github.com/django/django/blob/master/django/db/migrations/loader.py#L81
due to a missing `__init__.py` file, the app is neither in `migrated_apps`
nor `unmigrated_apps`. The same will happen if the migrations module is a
file, and not a folder.
--
Ticket URL: <https://code.djangoproject.com/ticket/24848#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.36bddeff9f65469424b0ebab0cd44d15%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.