Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django vs. Pylons

I've recently become a little frustrated with Django as a whole. It seems like I can't get full control over anything. I love Python to death, but I want to be able (and free) to do something as simple as adding a css class to an auto-generated form.

One MVC framework that I have really been enjoying working with is Grails (groovy). It has a FANTASTIC templating system and it lets you really have full control as you'd like.

However, I am beyond obsessed with Python. So I'd like to find something decent and powerful written in it for my web application development.

Any suggestions?

Pylons maybe?

like image 543
Kenneth Reitz Avatar asked Aug 28 '09 03:08

Kenneth Reitz


People also ask

Is there anything better than Django?

Django is considered to be more popular because it provides many out of box features and reduces time to build complex applications. Flask is a good start if you are getting into web development. There are many websites built on the flask and gain heavy traffic, but not as much compared to the ones in Django.

Should I use Django or Nodejs?

Django is preferred for building scalable apps in limited time and if you require high performance, you must use Node. js framework. Being clear what type of web development you would like to build, makes it easier for you to select one.

What is the difference between Django pyramid and flask?

Flask is a "microframework" primarily aimed at small applications with simpler requirements. Pyramid and Django are both aimed at larger applications, but take different approaches to extensibility and flexibility. Pyramid targets flexibility and lets the developer use the right tools for their project.

Is Django more popular than rails?

Popularity. In the battle of Ruby on Rails vs Django popularity, Django is more popular than Ruby on Rails, mainly because Python is incredibly popular. It is one of the most popular programming languages, and its popularity is growing faster than ever.


1 Answers

I'm using Pylons right now. The flexibility is great. It's all about best-of-breed rather than The Django Way. It's more oriented toward custom application development, as opposed to content-based web sites. You can certainly do content sites in it; it's just not specifically designed for them.

On the other hand, you do end up needing to read a lot of different documentation, in different places, of different quality, to grok all the components. Whereas one of the nice things about Django is that for all the core components, you just read "the" documentation.

The Mako (templates) + SQLAlchemy (DB & ORM) combo is really nice, though. Back when I used Django, I replaced its templating and DB system with them (giving up some of its integration features in the process) and they are standard with Pylons. Mako lets you use Python expressions, which is nice because even though you should separate business logic from design, dynamic sites do require significant display logic, and Django's template tags are clumsy to work with. SQLAlchemy lets you work with the same data model anywhere from the raw SQL level to the object-oriented ORM level.

I think it's worth the time to at least go through the docs and do the QuickWiki tutorial.

like image 184
Jason S Avatar answered Sep 20 '22 00:09

Jason S