Git Product home page Git Product logo

automagic's Introduction

自动化测试平台

python2.7 Django 1.10框架

依赖包安装

pip install -r requirements.txt

Mysql 数据库 automated/settings.py

DATABASES = {
    'default': {
        # 'ENGINE': 'django.db.backends.sqlite3',
        # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
        'ENGINE':'django.db.backends.mysql',
        'NAME':'autoplat',
        'USER':'root',
        'PASSWORD':'123456',
        'HOST':'127.0.0.1',
        'PORT':'3306'
    }
}

安装

方式一 (本地安装)

python setup install

方式二(打包安装)

python setup sdist
cd dist
pip install automagic-0.1.tar.gz

数据库初始化

cd automagic
python manage.py makemigrations
python manage.py migrate

初始化会报createSuperuser的错误,此处忽略即可,下面会用命令创建用户。

另:内置关键字 在wiki #关键字创建# 页面(可以了解一下)

创建管理员用户

python manage.py createsuperuser

按照提示进行输入要创建的用户名、邮箱、密码(8位以上,字母、字符、数字的组合)

启动服务

manage.py runserver 0.0.0.0:8000

http://127.0.0.1:8000 访问登录即可

django admin

http://127.0.0.1:8000/admin/

Restful api

http://127.0.0.1:8000/api/

公众号

扫一扫关注公众号

开源优测

automagic's People

Contributors

radiateboy avatar small99 avatar tsbc520 avatar

Watchers

 avatar

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.