1. MAC 自带 python2.7,另行下载 python3.6 进行双 python 环境部署,python3.7 不推荐
  2. pip3 install httprunner
  3. mysql 安装(推荐 5.7+),mysql 客户端(选装),mysqlclient
  4. python3 -m pip install pymysql
  5. git clone https://github.com/HttpRunner/HttpRunnerManager.git
  6. pip3 install -r requirements.txt
  7. vim /usr/lib/python3.6.0/site-packages/django/db/backends/mysql/base.py 在 from django.utils.safestring import SafeBytest,SafeTest 下添加下面两条 import pymysql pymysql.install_as_MySQLdb()
  8. 修改 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'HttpRunner', 'USER': 'root', 'PASSWORD': '123456', 'HOST': '127.0.0.1', 'PORT': '3306', } } BROKER_URL = 'amqp://guest:guest@127.0.0.1:5672//'
  9. python3 manage.py makemigrations ApiManager python3 manage.py migrate
  10. python3 manage.py runserver 8000
  11. http://127.0.0.1:8000/api/register
  12. 至此系统已经可以正常访问和使用了,邮件系统另行更新。


↙↙↙阅读原文可查看相关链接,并与作者交流