zhaoguocai007 / automagic

web automated test platform with Python Django

Home Page:https://radiateboy.github.io/automagic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

自动化测试平台

python2.7 Django 1.10框架

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/

About

web automated test platform with Python Django

https://radiateboy.github.io/automagic/

License:GNU General Public License v2.0


Languages

Language:JavaScript 48.8%Language:HTML 21.8%Language:Python 18.4%Language:CSS 11.0%