V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2013-08-28 23:25:58 +08:00 · 4205 次点击
    这是一个创建于 3886 天前的主题,其中的信息可能已经有所发展或是发生改变。
    想用django做一个博客,部署在bae上面,数据库使用mongodb,采用mongoengine。但是bae上没有安装mongoengine,所以只能将mongoengine放在自己的目录下面,但是import以后就出问题了。请问一下,这样子使用,需要注意一些什么问题?
    7 条回复    1970-01-01 08:00:00 +08:00
    jerry
        1
    jerry  
       2013-08-28 23:30:51 +08:00
    mongoengine 依赖 pymongo 吧
    shoumu
        2
    shoumu  
    OP
       2013-08-28 23:39:15 +08:00
    @jerry 是的,我电脑上装了的
    xavierskip
        3
    xavierskip  
       2013-08-29 01:29:35 +08:00
    BAE上有他们自己的MongoDB 不能用吗?http://developer.baidu.com/wiki/index.php?title=docs/cplat/rt/python/mongodb
    既然是云环境,毕竟还是受一些限制的,不可能像vps那样方便折腾。
    shoumu
        4
    shoumu  
    OP
       2013-08-31 23:18:01 +08:00
    @xavierskip 只是想用mongoengine简单一些,直接用pymongo的话,表单,登陆什么的太麻烦
    ritksm
        5
    ritksm  
       2013-08-31 23:46:33 +08:00
    如果不是真的mysql没法存数据schema...django还是别用mongodb好了...要用也自己pymongo抽象一个数据层好些...我觉得就是坑啊...
    shoumu
        6
    shoumu  
    OP
       2013-08-31 23:59:10 +08:00
    @ritksm 有这种感受,如果现在重头来让我做,我就选择sql了,但是现在较上劲了
    ritksm
        7
    ritksm  
       2013-09-01 00:01:55 +08:00
    @shoumu 那还是...慢慢爬出坑吧...个人感觉...mongodb和django这种自带orm的结合略烦...像flask、bottle啥的就顺手多了...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5455 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 03:02 · PVG 11:02 · LAX 20:02 · JFK 23:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.