Django安装和卸载

安装与验证

  • 安装

    pip源:
        https://pypi.douban.com/simple/  豆瓣源
        https://pypi.tuna.tsinghua.edu.cn/simple   清华源
    格式:
        pip install django -i https://pypi.douban.com/simple/
    
     pip3 install Django==3.2 # 指定版本
    
  • 验证是否安装成功

    ➜  my_zdh_platform git:(main) ✗ django-admin
    
    Type 'django-admin help <subcommand>' for help on a specific subcommand.
    
    Available subcommands:
    
    [django]
        check
        compilemessages
        createcachetable
        .......
    
    
  • 创建项目

    django-admin startproject 项目名称
    
  • 启动项目

    python3 manage.py runserve # 后面可以指定ip和端口 默认本机 8000端口
    
  • 浏览器访问 http://127.0.0.1:8000/

可以访问说明没有问题,安装成功

卸载

pip3 uninstall Django
posted @   zhq9  阅读(81)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
点击右上角即可分享
微信分享提示