duaner1634 2010-06-02 20:36
浏览 104
已采纳

如何从PHP过渡到Python Django?

Here's my background: Decent experience with PHP/MySql. Beginner's experience with OOP

  1. Why I want to learn Python Django? I gave in, based on many searches on SO and reading over some of the answers, Python is a great, clean, and structured language to learn. And with the framework Django, it's easier to write codes that are shorter than with PHP

  2. Questions

    1. Can i do everything in Django as in PHP?

    2. Is Django a "big" hit in web development as PHP? I know Python is a great general-purpose language but I'm focused on web development and would like to know how Django ranks in terms of web development.

    3. With PHP, PHP and Mysql are VERY closely related, is there a close relation between Django and Mysql?

    4. In PHP, you can easily switch between HTML, CSS, PHP all in one script. Does Python offer this type of ease between other languages? Or how do I incorporate HTML, CSS, javascript along with Python?

  • 写回答

4条回答 默认 最新

  • dongzhe3573 2010-06-02 20:50
    关注

    Can i do everything in Django as in PHP?

    Always

    Is Django a "big" hit in web development as PHP?

    Only time will tell.

    With PHP, PHP and Mysql are VERY closely related, is there a close relation between Django and Mysql?

    Django supports several RDBMS interfaces. MySQL is popular, so is SQLite and Postgres.

    In PHP, you can easily switch between HTML, CSS, PHP all in one script.

    That doesn't really apply at all to Django.

    Or how do I incorporate HTML, CSS, javascript along with Python?

    Actually do the Django tutorial. You'll see how the presentation (via HTML created by templates) and the processing (via Python view functions) fit together. It's not like PHP.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题