Getting started with Pylons

I am just starting to use the web framework. I decided that I really like python and started looking at web frameworks. I don't like django for several reasons, but from what I tried, I found that I really like pylons.

The problem is that I cannot find many articles / guides about pylons, especially 1.0 articles. Does anyone know good tutorials and articles on pylons?

In addition, I will need to introduce users to my applications with a secure login and have my own model. Any good tips / articles / tutorials on how I will do this?

When I looked at some tutorial, they mention python virtual environments. I really don't know what it is, why you use them, and how you use them. Any help?

Finally, I cannot find good tutorials / articles on how to deploy pylons in a production environment. I have a VPS, and I'm going to turn around there. Any help on this?

Is there anything else I should know about pylons or python. I already know the basics of python.

+7
python authentication pylons
source share
4 answers

The book offered by the medic ( http://pylonsbook.com/en/1.1/ ) is a very good start. I supported its author because I recognized the Pylons.

However, the book is written for Pylons 0.9.7 (latest version to 0.10 and 1.0).

Pylons are an agglomeration of several high-quality libraries. Learning Pylons is a study of these libraries. Most of the book is devoted to the study of these libraries. When you learn how to develop a web application in Pylons, what you are really learning is application development in Python.

Right now, I think the book and the official website ( http://pylonshq.com/docs/en/1.0/ ) are the two most valuable resources for learning Pylons.

Most of the changes that occurred between 0.9.7 and 1.0 are at the start of the application (which you probably won't actually try to change at the beginning). In addition, the libraries have been updated (sqlalchemy is now 0.6, etc.). In addition, one change that may affect you: the url_to and redirect_to functions have been replaced with a URL and a redirect. What about that.

+10
source share

There is a complete book published for free that covers Pylons 1.0:

http://pylonsbook.com/en/1.1/

+6
source share

You definitely need to learn SQLAlchemy to manage Pylons.

The white papers are a good start, http://www.sqlalchemy.org/docs/ , and you can try the Elixir extension, which provides a slightly better declarative syntax.

You should also read the documents in the Routes module, http://routes.groovie.org/contents.html , especially for RESTful lookups and services, http://routes.groovie.org/restful.html

And you need to learn the w / e template system you choose. For example, Mako has some non-obvious caveats, such as the much better metrics <%namespace/> vs <%include/> .

+2
source share
+1
source share

All Articles