GithubHelp home page GithubHelp logo

resource's Introduction

Python Flask订餐系统

启动

  • export ops_config=local|production
  • python manager.py runserver

根据数据库表生成model

flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables user --outfile "common/models/User.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables app_access_log --outfile "common/models/log/AppAccessLog.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables app_error_log --outfile "common/models/log/AppErrorLog.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables member --outfile "common/models/member/Member.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables oauth_member_bind --outfile "common/models/member/OauthMemberBind.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables food --outfile "common/models/food/Food.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables food_cat --outfile "common/models/food/FoodCat.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables food_sale_change_log --outfile "common/models/food/FoodSaleChangeLog.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables food_stock_change_log --outfile "common/models/food/FoodStockChangeLog.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables images --outfile "common/models/food/Images.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables wx_share_history --outfile "common/models/food/WxShareHistory.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables member_cart --outfile "common/models/member/MemberCart.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables member_address --outfile "common/models/member/MemberAddress.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables member_comments --outfile "common/models/member/MemberComments.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables pay_order --outfile "common/models/pay/PayOrder.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables pay_order_callback_data --outfile "common/models/pay/PayOrderCallbackData.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables pay_order_item --outfile "common/models/pay/PayOrderItem.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables queue_list --outfile "common/models/queue/QueueList.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables oauth_access_token --outfile "common/models/pay/OauthAccessToken.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables stat_daily_food --outfile "common/models/stat/StatDailyFood.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables stat_daily_member --outfile "common/models/stat/StatDailyMember.py" --flask flask-sqlacodegen 'mysql+pymysql://root:[email protected]/food_db' --tables stat_daily_site --outfile "common/models/stat/StatDailySite.py" --flask

resource's People

Watchers

James Cloos 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.