Comments (7)
- 把db.sqlite3拷贝出来
docker cp websiteguide:/WebsiteGuide/db.sqlite3 .
- 找个数据库编辑器打开db.sqlite3,表websiteapp_userinfo,admin的password字段值修改为
pbkdf2_sha256$150000$l8yRqOYqKCFq$Bm3BalPJWV3ez2sG0PYjpBlHZi765hHtzH8b1lr+k/k=
- 把db.sqlite3拷贝回去
docker cp db.sqlite3 websiteguide:/WebsiteGuide/db.sqlite3
- 打开后台输入账号
admin
密码admin@1234
即可登录
之前没有预留忘记密码功能,可以用上面的方式临时解决。
from websiteguide.
好的,谢谢佬
from websiteguide.
from websiteguide.
有执行第三步吗
from websiteguide.
我是用docker-compose起的容器,db文件在本地,我本地修改完之后还重启了容器,但是登录还是提示密码错误
from websiteguide.
执行这条命令创建一个用户,账号user
密码admin@1234
,进去后台再重置admin密码也可以
docker exec -it websiteguide python /WebsiteGuide/manage.py useradd -u user -p admin@1234 -s -n 用户
from websiteguide.
感谢大佬,可以了。
from websiteguide.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websiteguide.