Skip to content

Qiumy/SecurityPlatform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

证券模拟交易系统

部署方法(Windows):

  1. 使用virtualenv虚拟化环境(virtualenv简易教程):根据项目下的requirements.txt把依赖包安装到虚拟环境中(有些依赖如MySQL-pyrhon、lxml安装不了的,去windows下的python依赖包下载安装)。以后启动项目前都需要先激活虚拟环境。

  2. 安装数据库:在项目下的cogfig.py里把SQLALCHEMY_DATABASE_URI这项改为自己的mysql数据库用户名密码,之后再进入项目主目录进行数据迁移,即依次执行


# 首次迁移
# python manage.py db init
# python manage.py db migrate
python manage.py db upgrade

之后可以导入sql文件(建议使用navicat,一个可视化管理mysql的工具)

  1. 启动项目:先激活虚拟环境,之后运行服务进程。
    venv/bin/activate
    python manage.py runserver

About

A website for Advanced Database homework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •