Django—使用后台管理Models

后台的配置

1.创建后台管理员

[root@localhost study_django]# python manage.py createsuperuser
[root@localhost study_django]# ./manage.py createsuperuser

2.启动服务,运行项目

[root@localhost study_django]# python manage.py runserver 0.0.0.0:8000

3.后台登录地址:http://localhost:8000/admin,或直接使用IP访问:http://49.232.56.69:8000/admin

posted @ 2019-11-28 23:24  刘_love_田  阅读(339)  评论(0)    收藏  举报