美文网首页
没废话保证绝对可行教程(1.6)Django+RestFrame

没废话保证绝对可行教程(1.6)Django+RestFrame

作者: yichael | 来源:发表于2018-10-05 00:07 被阅读0次

    游戏开发全栈工程师精通虚幻4,unity3d,CocosCerator,微信小游戏小程序以及Django开发。如有问题可以来群沟通:247260198

    1.进入到tmp目录下,创建requirements.txt

    vim requirements.txt

    内容如下:

    diff-match-patch==20121119

    Django==2.0.1

    django-crispy-forms==1.7.0

    django-formtools==2.1

    django-import-export==0.6.1

    django-pure-pagination==0.3.0

    django-ranged-response==0.2.0

    django-reversion==2.0.12

    django-simple-captcha==0.5.6

    djangorestframework==3.8.2

    et-xmlfile==1.0.1

    future==0.16.0

    httplib2==0.9.2

    jdcal==1.3

    odfpy==1.3.6

    openpyxl==2.4.9

    Pillow==5.0.0

    pytz==2018.4

    PyYAML==3.12

    six==1.11.0

    tablib==0.12.1

    unicodecsv==0.14.1

    uWSGI==2.0.17

    xlrd==1.1.0

    xlwt==1.3.0

    注意:如果是右键拷入,会出现文本首行丢失内容的情况。需要手动补齐。

    然后:wq!保存退出。

    2。在django虚拟环境下,安装第三方库列表:

    pip3 install -r requirements.txt # 安装第三方库列表

    3,安装mysqlclient

    1)下载

    https://pypi.org/project/mysqlclient/#files

    2)解压

    tar -xzvf mysqlclient-1.3.13.tar.gz

    3)修改配置文件

    cd mysqlclient-1.3.13

    vim setup_posix.py

    修改setup_posix.py下,mysql_config.path = "mysql_config" 改成 mysql_config.path = "/usr/local/mysql/bin/mysql_config",保存并退出:wq!

    4)安装

    python setup.py install

    相关文章

      网友评论

          本文标题:没废话保证绝对可行教程(1.6)Django+RestFrame

          本文链接:https://www.haomeiwen.com/subject/cgyfaftx.html