Django 1.10 - how to load initial users
<p>What is the right way to load initial users in Django 1.10?</p>

<p>When we talk about our own django app then it is recommended to have a /fixtures/initial_data.json (as mentioned <a href="http://stackoverflow.com/questions/25960850/loading-initial-data-with-django-1-7-and-data-migrations">here</a>).</p>

<p>But in the case of User, where  django.contrib.auth is not our app, where should we put the fixtures directory and how do we load it?</p>

<p>Thank you,</p>

<p>Rami</p>

<p>You can create fixture from default user model by below command:</p>

<pre><code>python manage.py dumpdata auth.user -o FIXTURE_ADDRESS
</code></pre>

<p>and load initial data by below command:</p>

<pre><code>python manage.py loaddata FIXTURENAME
</code></pre>

<p>that <code>FIXTURENAME</code> is name of your fixture in one of <code>FIXTURE_DIRS</code>.
The <code>FIXTURE_DIRS</code> by default is <strong>fixtures</strong>.</p>

python django django-models django-migrations