I am not sure what exactly the problem is, but this looks like we should
improve our docs.
--
Ticket URL: <https://code.djangoproject.com/ticket/28004>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/28004#comment:1>
* needs_docs: 1 => 0
* has_patch: 0 => 1
* easy: 1 => 0
* stage: Unreviewed => Accepted
Comment:
Does this [https://github.com/django/django/pull/8279 PR] give the missing
advice?
--
Ticket URL: <https://code.djangoproject.com/ticket/28004#comment:2>
Comment (by René Fleschenberg):
Tim, thank you for your super-quick reaction!
I now found https://docs.djangoproject.com/en/1.10/topics/migrations
/#adding-migrations-to-apps, which is where I should have pointed the user
at. So this is in fact properly documented already. My bad for not looking
harder, sorry.
On the other hand, papna is (I think) an experienced Python user, so one
could argue that we have a discoverability problem here.
I wonder if we should change the behaviour of `makemigrations` to write
migration files even for apps that don't have a `migrations` package. This
would be less surprising, I think.
In any case, I think this issue is of fairly low priority.
--
Ticket URL: <https://code.djangoproject.com/ticket/28004#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"7b53041420009ad430035116c25f36804e714cd5" 7b53041]:
{{{
#!CommitTicketReference repository=""
revision="7b53041420009ad430035116c25f36804e714cd5"
Fixed #28004 -- Doc'd how to create migrations for an app without a
migrations directory.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28004#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"0a8dbd9c2f327bef462f04e3aea7e5100fcfe5af" 0a8dbd9c]:
{{{
#!CommitTicketReference repository=""
revision="0a8dbd9c2f327bef462f04e3aea7e5100fcfe5af"
[1.11.x] Fixed #28004 -- Doc'd how to create migrations for an app without
a migrations directory.
Backport of 7b53041420009ad430035116c25f36804e714cd5 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28004#comment:5>
Comment (by Tim Graham):
As long as we support apps without migrations (the `migrate --run-syncdb`
option), I don't think should have `makemigrations` write migration files
for apps that don't have a migrations package.
--
Ticket URL: <https://code.djangoproject.com/ticket/28004#comment:6>