paster

Django equivalent to paster for backend processes

I use pylons in my job, but I'm new to django. I'm making an rss filtering application, and so I'd like to have two backend processes that run on a schedule: one to crawl rss feeds for each user, and another to determine relevance of individual posts relative to users' past preferences. In pylons, I'd just write paster commands to upda...

What is paster and how do I install it?

I am installing an application and have installed python and easy_install. I now have two steps to complete: 5. Make a config file as follows:: paster make-config openbiblio development.ini 6. Tweak the config file as appropriate and then setup the application:: paster setup-app config.ini I have read Stackoverflow answers ...

Pylons 1.0 - c.id no longer being automatically set on python v2.6.2 and 2.7

I am at a loss on this one, I intalled a SSD on my dev box today and started with a fresh development environment. In short, pylons no longer sets the c.id based on the id passed to the action. Code, error, and libs install: http://pastie.org/1064929 Very strange, because my production server is mirroring my python version (2.6.2) and...

How do I get paster serve to serve both HTTP and HTTPS requests at the same time?

For now I have the following lines in a project configuration on pylons: [server:main] ... ssl_pem = /path-to-pem/file-name.pem so paster serves only HTTPS requests but not HTTP. Any HTTP request causes the following exception in paster debug console: Traceback (most recent call last): File "/home/eigenein/Projects/Python/Pylons/li...

Enable gzip compression in a Grok - Zope - PasteScript environment

Hello everyone! I am trying to make my server send gzipped data. I have a grok application that runs over Paste (Paste-1.7.2-py2.4.egg) I have been trying to google how to make all that environment to serve data in gzip... But without success... I think the answer comes in http://pythonpaste.org/modules/gzipper.html but if I do this: ...

Pylons / SQLAlchemy - ConfigParser.MissingSectionHeaderError: File contains no section headers

I've been working on a Pylons site and just now started to create my database. I made my User model class and then issued paster setup-app development.ini. Worked great. However, now when I try to paster serve --reload development.ini, I get the following error: ConfigParser.MissingSectionHeaderError: File contains no section headers. ...

Using Microsoft SQL through python on a webserver

I'm trying to run some queries to a database from a pylons (paster-based) webserver and every time I try to import the pymssql Library I'm using (its this one by the way) I keep getting this error: tds_init_winsock: WSAEnumProtocols failed with 10055(WSAENOBUFS: No buffer space available.) on the import. I also tried using sqlalchemy ...

When using paster web server, does it service requests by creating a new thread?

Does paster create a new thread per request? Can you set the maximum number of threads for paster to use i.e. a thread pool? How can you if this is possible? ...

Modifying The Template For New Pylons Controllers

I'm at a point in my Pylons projects where I end up creating and deleting controllers often (probably more often than I should). I grow tired of adding my own imports and tweaks to the top of every controller. There was a recent question about modifying the new controller template that got me part-way to not having to do that - but I do...

How should I host multiple Pylons websites on the one server?

I currently have one Pylons website running on my server that is setup using nginx as a proxy to Paster. In the near future, I plan to host another Pylons site on the same server. If I were to go the same route and use nginx+Paster, it would mean running two paster instances on different ports and then using the one nginx server as a pr...