Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Latest commit

 

History

History
21 lines (10 loc) · 577 Bytes

File metadata and controls

21 lines (10 loc) · 577 Bytes

Как сделать в python-social-auth нормального админа

python3 manage.py createsuperuser

Ставим sqlite3 и заходим в консоль

attach "mydb.sqlite" as db1;

SELECT name FROM db1.sqlite_master WHERE type='table';

Далее исполняем, но нужно подправить название модуля

select * from vkmodule_userprofile;

Чтобы узнать название строчек:

PRAGMA table_info('table_name');

update vkmodule_userprofile set is_superuser=1 where username="admin";