A simple web.py weblog

I found some code for a simple weblog in web.py on k4ml’s wiki. Take a look at it. I think it’s actually quite readable.

I must admit, the whole MVC thing is still a little confusing to me. I’m starting to wonder if I should try out something simple like web.py to get some more experience before jumping in with Django or TurboGears. The above example seems to confirm that opinion.

Update: I just loaded Cheetah on the Ultra and ran through the web.py tutorial

It certainly is a lot more simple than, for example, Django. But it comes at the price of not having the awesome built-in admin pages and such.

5 Responses to “A simple web.py weblog”

  1. Mateusz Łoskot Says:

    Take a look at this:
    http://www.bigbold.com/snippets/posts/show/1050
    This is a short code snippet about Model-View-Controller in Python which may be helpful.

  2. John Says:

    Thanks for the link!

  3. trevor Says:

    Hmmm, I’m at a similar stage, I’m drawn to django because of python & postgresql. But have yet to get my head around the whole MVC approach. The code snippet does help but where is the controller in Django? Webpage??
    (Perhaps I need to do the tutorial again)

  4. John Says:

    Hi Trevor,

    Django’s nomenclature is a little different than most other MVC frameworks. Here’s how Wikipedia describes it:

    “While Django is influenced heavily by the Model-View-Controller philosophy of development, its developers publicly state that they do not feel bound to strictly observe any particular paradigm, preferring instead to do “what feels right” to them. As a result, for example, what would be called the “controller” in a “true” MVC framework is, in Django, called the “view”, and what would be called the “view” is called the “template”.”

  5. import this. » Blog Archive » Building a simple wiki using web.py Says:

    [...] I ran through the web.py tutorial a while back and was pleasantly surprised. It’s a simple but rather nice framework. [...]

Leave a Reply