Skip to content

import-keshav/khoj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KHOJ

Steps for creating superuser

Run following command in your terminal
python manage.py createsuperuser
Now open django shell and run the following commands
python manage.py shell

Now add following commands in shell
from django.contrib.auth.models import User

Now get the object of the following user
user = User.objects.all()[0]
The above command would return 1st user present in the database

Now do the following operations on the objects user.is_staff = True
user.is_verified = True
user.is_verified = True
user.is_active = True
user.save()
Exit the terminal
exit()

Now the superuser has been created succesfully

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 50.7%
  • Python 48.9%
  • JavaScript 0.4%