代码都在github: URL:https://github.com/njxshr/codes/tree/master/testdj
pip install django
mkdir /test_chanjet_asset_management
cd test_chanjet_asset_management
django-admin.py startproject testdj
cd testdj # 切换到我们创建的项目
python manage.py runserver # 运行django
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
# 以上信息说明,项目已启动,访问地址为http://127.0.0.1:8000/。
django-admin.py startproject HelloWorld
python manage.py runserver 0.0.0.0:8000
# 0.0.0.0 让其它电脑可连接到开发服务器,
# 8000 为端口号。如果不说明,
# 那么端口号默认为 8000。
目录说明
运行效果