Django—使用後臺管理Models

後臺的配置python

1.建立後臺管理員django

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

2.啓動服務,運行項目bash

[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/adminspa

相關文章
相關標籤/搜索