Python

    xiaoxiao2021-03-25  91

    很简单的一个web框架,简单试验一下

    pip install eve Development $ git clone http://github.com/pyeve/eve.git Initialized empty Git repository in ~/dev/eve/.git/ $ cd eve $ virtualenv venv New python executable in venv/bin/python $ . venv/bin/activate pip install flask-pymongo 这里要https科学上网一下(squid代理) $ python setup.py install ... Finished processing dependencies for Eve

    写个run.py

    from eve import Eve app = Eve() if __name__ == '__main__': app.run()

    写个settings.py

    DOMAIN = {'people': {}}

    搞定

    转载请注明原文地址: https://ju.6miu.com/read-17767.html

    最新回复(0)