user = User.objects.create_user('john', 'lennon@thebeatles.com', 'johnpassword') user.is_staff=True user.save()