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.
January 18th, 2006 at 2:52 am
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.
January 31st, 2006 at 5:16 pm
Thanks for the link!
February 1st, 2006 at 4:12 am
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)
February 8th, 2006 at 11:05 pm
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”.”
March 1st, 2006 at 8:42 pm
[...] I ran through the web.py tutorial a while back and was pleasantly surprised. It’s a simple but rather nice framework. [...]