如果想在 V2EX 获得更好的推广效果,欢迎了解 PRO 会员机制:
https://www.sunp.eu.org/pro/about

如果你经常使用铜币置顶主题,持有 V2EX Solana Token 会在每日签到时获得额外铜币:
https://www.sunp.eu.org/solana
51Reboot
V2EX  ›  推广

关于 Git SSH 使用的项目实践

  •  1
     
  •   51Reboot · Sep 5, 2017 · 2732 views
    This topic created in 3201 days ago, the information mentioned may be changed or developed.


    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
       Sep 5, 2017
    wellsc
        2
    wellsc  
       Sep 6, 2017 via iPhone
    #请不要再发这样的文章
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   925 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:57 · PVG 04:57 · LAX 13:57 · JFK 16:57
    ♥ Do have faith in what you're doing.