Giter Club home page Giter Club logo

bk_app_template's Introduction

蓝鲸智云应用开发模板--助力你的自动化 这里有各种层次的应用样例,根据你的需要,选择合适的样例开始快速开发。

运行要求说明:

安装requirements.txt文件中的python包

安装mysql,并调整 config\settings_develop.py里的DB用户名和密码

数据库初始化: 本模版工程的具体使用过程如下:

                  1. manage.py migate    (初始化数据库表)
                  2. 针对有表的application创建表:
                  例如:manage.py migrate app_control

在项目文件夹同级的目录里建立logs文件夹(如不清楚可以直接runserver后看错误提示信息)

目录说明:

--公共包 account:用户登录鉴权 app_control:应用功能开关 common:公用方法(log,decorator, context_processors)

static:态文件(css, js, img)
templates:模版(django模版和mako模版,如果说ajax的子页面,模版文件可以使用其他后缀,如**.part)

-- 配置包 conf:用户配置包 settings_development.py:开发环境配置,如 数据库 settings_testing.py: 测试环境配置 settings_production.py:正式环境配置

--应用包 home_application: 你的根应用包,用于开发你的应用的主要功能,子功能可以单独建立其他的应用包

开发说明:

--修改配置文件 conf/default.py 文件:APP_ID \ APP_TOKEN (蓝鲸智云开发者中心 -> 点击应用ID -> 基本信息 中可以查看到这个两个值的信息) conf/default.py 文件:BK_PAAS_HOST(蓝鲸智云开发者中心的域名,形如:http://paas.bking.com) conf/settings_development.py 文件:DATABASES(本地开发数据库信息) conf/settings_testing.py 文件:DATABASES(测试环境数据库信息) conf/settings_production.py 文件:DATABASES(正式环境数据库信息)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.