推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
shoumu
V2EX  ›  Python

BAE上使用未安装的python包

  •  
  •   shoumu ·
    shoumu · Aug 28, 2013 · 4901 views
    This topic created in 4646 days ago, the information mentioned may be changed or developed.
    想用django做一个博客,部署在bae上面,数据库使用mongodb,采用mongoengine。但是bae上没有安装mongoengine,所以只能将mongoengine放在自己的目录下面,但是import以后就出问题了。请问一下,这样子使用,需要注意一些什么问题?
    7 replies    1970-01-01 08:00:00 +08:00
    jerry
        1
    jerry  
       Aug 28, 2013
    mongoengine 依赖 pymongo 吧
    shoumu
        2
    shoumu  
    OP
       Aug 28, 2013
    @jerry 是的,我电脑上装了的
    C0VN
        3
    C0VN  
       Aug 29, 2013
    BAE上有他们自己的MongoDB 不能用吗?http://developer.baidu.com/wiki/index.php?title=docs/cplat/rt/python/mongodb
    既然是云环境,毕竟还是受一些限制的,不可能像vps那样方便折腾。
    shoumu
        4
    shoumu  
    OP
       Aug 31, 2013
    @xavierskip 只是想用mongoengine简单一些,直接用pymongo的话,表单,登陆什么的太麻烦
    ritksm
        5
    ritksm  
       Aug 31, 2013
    如果不是真的mysql没法存数据schema...django还是别用mongodb好了...要用也自己pymongo抽象一个数据层好些...我觉得就是坑啊...
    shoumu
        6
    shoumu  
    OP
       Aug 31, 2013
    @ritksm 有这种感受,如果现在重头来让我做,我就选择sql了,但是现在较上劲了
    ritksm
        7
    ritksm  
       Sep 1, 2013
    @shoumu 那还是...慢慢爬出坑吧...个人感觉...mongodb和django这种自带orm的结合略烦...像flask、bottle啥的就顺手多了...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 04:16 · PVG 12:16 · LAX 21:16 · JFK 00:16
    ♥ Do have faith in what you're doing.