DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
iloahz

感觉 google.appengine.ext.db 完爆 django.db 一条街啊,求指点django使用方法

  •  
  •   iloahz · Dec 28, 2012 · 5424 views
    This topic created in 4892 days ago, the information mentioned may be changed or developed.
    不管是删除还是增加一个字段,gae里面改了代码直接就ok了。

    而django里面改代码后,还要
    ·syncdb·
    ·alert blabla...·
    尤其是alert什么的,对于不熟悉sql的童鞋简直要命啊。好吧,一定是因为我使用的不是等宽字体。

    貌似只有django是自己做ORM,其它都喜欢找小三"SQLALCHEMY",不知道这个家伙处理起来改字段什么的方便不。

    好吧,如果他们都只是框架,那google用的db真是完爆mysql一条街啊,求大神指点gae用的什么数据库啊,可以在非GAE环境部署不?

    好吧,我也知道是非关系型数据库,NoSQL么。。。是不是NoSQL都可以这么方便的在python框架里修改字段啊?
    6 replies    1970-01-01 08:00:00 +08:00
    cabbala
        1
    cabbala  
       Dec 28, 2012
    频繁改字段,这是什么需求。。。
    iloahz
        2
    iloahz  
    OP
       Dec 28, 2012
    @cabbala 个人小项目开发,确实经常修改字段啊
    Livid
        3
    Livid  
    MOD
    PRO
       Dec 28, 2012
    如果你需要的是一个 schema less 的数据库,那么你可以去看看 MongoDB:

    http://www.mongodb.org/

    而如果要在 MySQL 上做到同样的效果,我也好奇目前在 Python 世界里还有什么好的解决方案。

    GAE 的数据库在数据量小的时候还好,但是量大了之后,就实在是太贵了。
    wissen
        4
    wissen  
       Dec 28, 2012   ❤️ 1
    This is South, intelligent schema and data migrations for ​Django projects.
    http://south.aeracode.org/
    sillyousu
        5
    sillyousu  
       Dec 28, 2012 via Android
    sqlalchemy 也有两个类似south的工具。没用过,据说好用,都是sqlalchemy作者写的。
    sillyousu
        6
    sillyousu  
       Dec 28, 2012 via Android
    Alembic is a new database migrations tool, written by the author of SQLAlchemy.

    http://pypi.python.org/pypi/alembic
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3093 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:56 · PVG 21:56 · LAX 06:56 · JFK 09:56
    ♥ Do have faith in what you're doing.