Python

  • T9_472709
    了解作者
  • 213.6KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-16 03:01
    上传日期
Python
python-master.zip
内容介绍
# Setup * Clone this repo ``` git clone git@bitbucket.org:yoheioka/ivysaur.git ``` * Please use python 2.7 and not python 3 * Create a virtual environment Consider using [https://virtualenvwrapper.readthedocs.org](virtualenvwrapper) or pyenv to keep things clean. * Install and run Postgres [http://postgresapp.com/](Postgres.app) is an easy way to get up and running quick for Mac OSX users. Once you have Postgres installed and running, create a database called `ivysaur` to use as our local development database. * Set the IVYSAUR_ENV in your shell startup by adding the following. usually ~/.bashrc or ~/.zshrc ``` export IVYSAUR_ENV=development ``` * Install python packages ``` $> pip install -r requirements.txt note: if you get an error running the above, then try and run the following sudo PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.6/bin pip install psycopg2 brew install postgresql ``` * Install python developer packages Python packages required to run tests and debuging ``` $> pip install -r requirements_dev.txt ``` * Database migrations are handled using [https://flask-migrate.readthedocs.org/en/latest/](Flask-Migrate). You will have to run the following commands. ``` $> python manage.py db upgrade ``` * Initalize the Roles table by running the following ``` $> python manage.py create_roles ``` * You may need to do the following ``` mkdir -p /var/log/ivysaur sudo touch /var/log/ivysaur/ivysaur.log sudo chmod 666 /var/log/ivysaur/ivysaur.log sudo touch /var/log/ivysaur/manage.log sudo chmod 666 /var/log/ivysaur/manage.log ``` To start the server: ``` $> python ivysaur.py ``` To start the server in DEBUG mode: ``` $> python ivysaur.py --logging=DEBUG ``` Run tests * Attention. Create test db with name: _test_ivysaur_ to run tests ``` $> python run_tests.py ```
评论
    相关推荐
    • python
      Python 这是用于大多数基本和简单python代码的示例模板的存储库。
    • Python
      Python项目 Python是一些简单的Python项目,它是一种解释性的高级通用编程语言,我愿意学习它为将来的许多项目做出贡献! 入门 您必须安装Python 3.9.2才能尝试这些项目。 这些项目来自各种书籍,您可以根据需要进行...
    • Python
      Python Dit是Mijn储存库van Python
    • python
      Python 基本的python编程
    • Python
      Python python和pyspark
    • python
      关于python的学习资料。。。。。。。
    • python学习
      python学习 安装Python 我们转到Python页面进行初始下载:( )在为Mac OSX选择了最新版本(3.9.2)之后,我将其下载到了我的计算机上。 然后,我们搜索了“ Python入门”,并确认VS Code是适用于Python的可行代码...
    • Fluent Python
      This book was written for practicing Python programmers who want to become proficient in Python 3. If you know Python 2 but are willing to migrate to Python 3.4 or later, you should be fine. At the ...
    • Python
      Python 该存储库包含与Python编程研究相关的文档
    • SIM800C_MQTT.rar
      使用SIM800C模块,使用MQTT协议,连接中国移动onenet平台,能实现数据的订阅、发布、存储等