Coder Social home page Coder Social logo

trellixvulnteam / flasktest1_xqzw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from runningsparrow/flasktest1

0.0 0.0 0.0 18.46 MB

flasktest1

JavaScript 0.76% C++ 0.52% Python 88.49% C 2.68% Tcl 6.42% PowerShell 0.01% CSS 0.98% HTML 0.07% Mako 0.05% Batchfile 0.01% Xonsh 0.01%

flasktest1_xqzw's Introduction

1 首先在目标的 windows环境安装与源windows机器相同的 python版本(本例使用3.7.2),配置好环境变量
  然后安装 virtualenv
  参考安装语句  pip install virtualenv 


2 将flask项目解压到  目录 xx
  进入项目虚拟环境(项目根目录/venv/venv37)所在目录上一层执行 
  Virtualenv 虚拟环境目录 


3 安装mysql 
建立一个数据库,本例同项目名称(flasktest1)

4 修改  项目根目录/config.py 
Mysql 的用户名密码

mysql+pymysql://username:[email protected]:3306/flasktest1

  
5 执行虚拟环境/Scripts/activate.bat 进入虚拟目录

删除 项目根目录/migrations

然后打开cmd, 在项目根目录执行 
Python manage.py db init
Python manage.py db migrate
Python manage.py db upgrade

6 运行项目
Python manage.py runserver 

默认地址  http://localhost:5000

flasktest1_xqzw's People

Contributors

runningsparrow avatar trellixvulnteam 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.