Fixes #15862 -- Error in post_syncdb documentation example. Thanks for the report and patch andialbrecht.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
534c427b20
commit
5bbba4b9ad
|
@ -389,7 +389,7 @@ Arguments sent with this signal:
|
||||||
For example, the :mod:`django.contrib.auth` app only prompts to create a
|
For example, the :mod:`django.contrib.auth` app only prompts to create a
|
||||||
superuser when ``interactive`` is ``True``.
|
superuser when ``interactive`` is ``True``.
|
||||||
|
|
||||||
For example, yourapp/signals/__init__.py could be written like::
|
For example, ``yourapp/management/__init__.py`` could be written like::
|
||||||
|
|
||||||
from django.db.models.signals import post_syncdb
|
from django.db.models.signals import post_syncdb
|
||||||
import yourapp.models
|
import yourapp.models
|
||||||
|
|
Loading…
Reference in New Issue