Python web frameworks versus Java web frameworks (how does Python web development work?)

I am going to start my own web project for pets, to experiment with different things and expand my knowledge.

I use Java a lot at work (for web applications: D) and thought about making my own in Python, since I kind of like this language, but never went through the simple steps of a script.

I want to strengthen the Python mechanism (using 2.6.5) and don’t know what to expect or which framework to choose: Django, Pylons, web2py, etc.

I also do not know how much this framework will offer me, and how much I will have to write from scratch.

I could use comparison with Java if someone can provide me. I think of filter functions like sitemesh, custom tags like JSTL; In Python, can I write clean HTML pages with tags in them, or write a lot of print statements (something like servlets in Java, etc.

I do not know exactly how to formulate this question.

I really need to imagine how web development is done in Python, at what level, and what web frameworks bring to the table.

Can you share your experience?

TIA!

+6
java python templates web-frameworks
source share
4 answers

Python web frameworks manage a full range of features / capabilities, all the way from spacers around WSGI like Bottle and Flask, all the way to complete frameworks like Django and TurboGears, and even to megafares like Zope. Everyone does things a little differently, but there will be some familiarity from one to the other.

+2
source share

Hi, try a bottle of python framework (bottle.paws.de/bottlepy.org), its really nice to use bloat quickly and get out of your way + the best thing about this is that its only import file, I recently migrated from PHP and I must tell you that so ... loving him!

+3
source share

This may seem strange, but there is no need to know "how web development is done in Python" to start doing this.
In fact, working with / framework / etc is one of the most reliable ways to understand this. You will not get many of the one-page resumes.

Also, comparing with Java is unlikely to help. It makes no sense to do a "development of Java-style in Python." If you want to capitalize, you need to clear your mind and do everything in a "Python way".

Regarding the Python framework to choose from, Django seems like a good starting point. This is very popular, which means that you will not be left without textbooks / documentation / help.

Short version of PS: just do it.

+2
source share

Python web frameworks do this in the same way as some Java frameworks. I can talk about Django here.

A good comparison could be the Game! against Django. Both of them promote the use of MVC architecture (or MTV = models, templates, views) and already provide you with a lot of things, such as CRUD operations on admin pages, ORMs, authentication, URL configurations, a template language, and much more.

Other Java frameworks can vary a lot, and I cannot give you a general answer. There are only a few differences depending on the choice. You can simply choose the language and framework that you like best. I would recommend going through some tutorials ( Django tutorial , Play! Tutorial ) and see which one is best for your needs.

+2
source share

All Articles