Skip to content

Commit

Permalink
Merge pull request #11 from OpenPecha/feat/local_admin_setting
Browse files Browse the repository at this point in the history
local_admin_setting.py_update
  • Loading branch information
Lungsangg authored Jan 24, 2024
2 parents a2b3e5a + 57ae206 commit f215e3f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions local_admin_setting.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sefaria.settings')
import django
django.setup()

from django.contrib.auth.models import User
user = User.objects.get(username="your_username") # username is the last row in your sqlite db (something like this : DMX4q55i9WY0ZeqUevXacMq7V0We88)
user.is_staff = True
user.is_superuser = True
user.save()

0 comments on commit f215e3f

Please sign in to comment.