V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
51Reboot
V2EX  ›  推广

关于 Git SSH 使用的项目实践

  •  1
     
  •   51Reboot · 2017-09-05 15:25:18 +08:00 · 1888 次点击
    这是一个创建于 2424 天前的主题,其中的信息可能已经有所发展或是发生改变。


    Git 是分布式的代码管理工具,远程的代码管理是基于 SSH 的,所以要使用远程的 git 则需要 SSH 的配置。


    一、简述

    访问 Git 仓库可以使用 SSH Key 的方式,首先需要生成 Key.
    使用 SSH- Agent 配置公私钥,Windows 下需要安装 Github for Windows 或者 myssgit.
    生成公、私钥
    ssh-keygen -t rsa -b 4096 -c "silence"
    启动 agent
    ssh-agent -s 或者 $(ssh-agent -s)
    添加
    ssh-add 命令后面加上私有的 key 文件路径

    二、项目





    三、基础知识

    Python 基础知识
    Web 开发相关基础知识
    HTML
    CSS&JS (了解)
    Bootstrap
    Django 基本使用
    MVC
    ORM
    template
    admin
    Markdown

    四、项目创建

    第三方安装包




    项目创建&APP





    配置 APP




    五、代码走读

    创建文章 Model 类



    定义 View 获取博客列表&博客详情



    Template 显示博客列表&博客详情





    定义 APP urls 映射



    定义项目 url 映射



    使用 makemigrateions 生成迁移文件
    使用 migrate 迁移数据库



    createsuperuser 创建后台管理员
    python manage.py createsuperuser



    runserver 命令启动 web 服务器
    python manage.py runserver 0.0.0.0:8888



    六、项目链接

    https://pan.baidu.com/s/1slsLJjv 密码:nh15

    这是本次关于 Git SSH 使用的实践项目的源码。

    更多内容访问原文地址链接:
    https://mp.weixin.qq.com/s/m_2cxpBt7OPbxq4dN-svTA
    51Reboot
        1
    51Reboot  
    OP
       2017-09-05 15:28:30 +08:00
    wellsc
        2
    wellsc  
       2017-09-06 00:50:37 +08:00 via iPhone
    #请不要再发这样的文章
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3272 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 13:46 · PVG 21:46 · LAX 06:46 · JFK 09:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.