Creating users in fixtures

18 views
Skip to first unread message

aa56280

unread,
Jun 30, 2009, 7:32:57 PM6/30/09
to Django users
I'm trying to create a bunch of users in a initial_data.yaml fixture
file. What should I be using for the Model?
django.contrib.auth.user does not seem to be working. Django throws a
DeserializationError: Invalid model identifier:
'django.contrib.auth.user'

Any help would be greatly appreciated.

Alex Gaynor

unread,
Jun 30, 2009, 7:36:39 PM6/30/09
to django...@googlegroups.com
It's just auth.user.  You only use the app name (last part of the python path) and the model name.

Alex

--
"I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire
"The people's good is the highest law."--Cicero

aa56280

unread,
Jun 30, 2009, 7:47:55 PM6/30/09
to Django users
Worked like a charm.

Thanks, Alex.

On Jun 30, 6:36 pm, Alex Gaynor <alex.gay...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages