View Poll Results: Django vs CherryPy

Voters
9. You may not vote on this poll
  • Django

    6 66.67%
  • CherryPy

    3 33.33%
  • Others

    0 0%
Results 1 to 9 of 9

Thread: Django or CherryPy?

  1. #1
    Join Date
    Oct 2006
    Location
    San Francisco
    Beans
    140
    Distro
    Ubuntu 7.04 Feisty Fawn

    Django or CherryPy?

    Hi,

    I'm new to python and trying to implement a client based application in python. I need a web based and stand alone applications as clients that can communicate with the server. I'm going to use python for developing the entire project. I'm going to use wxPython library for the stand alone application.

    I'm wondering which of Django or cherryPy frameworks are more suitable for me. I'm looking for an easy to learn framework and I want two clients share most of their code other than the user interface one. I know that Django is an MVC based framework but I'm not sure if it is easy to use wxPython in it.

    I will really appreciate if you share your thoughts about it with me,

  2. #2
    Join Date
    Jun 2007
    Beans
    81

    Re: Django or CherryPy?

    let the Django versus TurboGears war begin!

  3. #3
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: Django or CherryPy?

    cherrypy is an "http framework" while django is mostly identified as "web framework" , so how can you compare apples to oranges?

    and no even turbogears is base on pylons.


    or maybe you're just looking for python's Twisted framework
    Last edited by loell; July 8th, 2008 at 02:21 PM.

  4. #4
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: Django or CherryPy?

    1: aiming for both web-based and desktop client/server app, you double amount of work you have to do. Choose one: web based is likely better choice, if you can deal with non-desktop behavior of application in browser. With some AJAX, web app will be more desktop-like.

    2: OP, you are comparing apples to oranges, as loell said. Why: CherryPy is web server, while Django supports web application front-to-end: it provides object-relational mapper, template, session management, automagically generates DB schema and all CRUD screens, and more.

    3: Django vs Turbogears war is not going to erupt, because OP (as a beginner) is obvious prime candidate for Django. Turbogears will be there when OP outgrows limits of Django

    4: OP: if you are experienced programmer just beginning with Python, then Turbogears might be better choice, because it gives you more control over your app. Ask experts on TG mailing list about dual mode with web and desktop integration.
    Last edited by pmasiar; July 8th, 2008 at 03:58 PM.

  5. #5
    Join Date
    Oct 2006
    Location
    San Francisco
    Beans
    140
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Django or CherryPy?

    Quote Originally Posted by pmasiar View Post
    1: aiming for both web-based and desktop client/server app, you double amount of work you have to do. Choose one: web based is likely better choice, if you can deal with non-desktop behavior of application in browser. With some AJAX, web app will be more desktop-like.
    Basically, I need a VoIP stand alone application. I don't think that I can create use AJAX for that. Even if I do it using AJAX, server load will be heavy.

  6. #6
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: Django or CherryPy?

    VOIP? Then you don't need web based app in traditional sense (browser fetching HTMP pages from a server). You need desktop client talking to server over IP, but that would not be web server (not serving pages). You don't need neither Django nor CherryPy, IMHO.

    It's not my area but I know there are plenty of frameworks (like twisted) and probably whole FOSS stack: client + server.

  7. #7
    Join Date
    Oct 2006
    Location
    San Francisco
    Beans
    140
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Django or CherryPy?

    As I said earlier, my client server based application has to have a stand alone and a web based application. VoIP is not the only type of service it's going to provide. Actually, VoIP is the only service that the web based client is not capable of doing.

    I am planning to use twisted for the VoIP part. However, I wanted to share some code with the web based application. Things like log in system, displaying friends, etc.

  8. #8
    Join Date
    Oct 2009
    Beans
    1

    Talking Re: Django or CherryPy?

    Both!

    You can run Django on to of CherryPy.

  9. #9
    Join Date
    Aug 2007
    Location
    127.0.0.1
    Beans
    1,800
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Django or CherryPy?

    Quote Originally Posted by ramayer View Post
    Both!

    You can run Django on to of CherryPy.
    And I thought that Eternal September ended.

    Oh well..
    "Just in terms of allocation of time resources, religion is not very efficient. There's a lot more I could be doing on a Sunday morning."
    -Bill Gates

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •