Hoa
Hoa

Reputation: 20438

In Django, how can I manually create users for my project?

I would like to process all of my users manually rather than having an automated registration process. I have looked at the documentation and there is a command line facility for creating a super user. Can I create ordinary users from the command line or some equivalent manual process?

Upvotes: 0

Views: 508

Answers (1)

Vikram
Vikram

Reputation: 7515

You can create user in django create_user() helper function that comes with Django. You can refer this Link for more information which was available in Django Documentation.

Another way can be dumping all the user lists directly in the database. Let say if you use MySQL Database, you can simply dump the data from CSV format into MySQL Database.

Upvotes: 3

Related Questions