There was an error while loading. Please reload this page.
1 parent b62bb1c commit 2c80dffCopy full SHA for 2c80dff
superuser.md
@@ -54,15 +54,27 @@ Password (again):
54
Bypass password validation and create user anyway? [y/N]: y
55
Superuser created successfully.
56
```
57
+```python
58
+python manage.py shell
59
60
+```
61
62
63
+from django.contrib.auth.models import User
64
+user = User.objects.create_superuser(username='Gurupatil',
65
+ email='gurupatil327@gmai.com',
66
+ password='ur')
67
68
69
+user.is_staff
70
+False
71
+ user.is_active
72
+True
73
+ user.is_superuser
74
75
76
-
77
78
79
80
### makemigrations:
0 commit comments