Questions tagged [pyramid]

Pyramid is a Python-based web framework provided by the Pylons Project. Do not use the "pyramid" tag for displaying items in a pyramid shape.

Pyramid is a small, fast, down-to-earth Python web application development framework that is un-opinionated and very flexible. This allows it to be used in a variety of different projects where Pyramid's flexibility allows for easier integration with already-existing code/modules. Because it is un-opinionated it gives the developer a lot of choice in how to handle various aspects - such as sessions, authentication, authorization and more - without sacrificing support for those aspects or out-of-box ease of use.

It is developed as part of The Pylons Project. It is licensed under a BSD-like license with extra clauses.

Official Logo

Official Pyramid Logo

Official Icon

Official Pyramid Icon

2212 questions
1
vote
1 answer

pyramid_oauth2 service provider documentation or examples

I need to make an api in pyramid and i think oauth2 would be good to implement not to reinvent the wheel, already installed pyramid_oauth2 package but not sure about documentation or examples. Somebody knows any good resource? a github project or…
Raul Gomez
  • 620
  • 7
  • 15
1
vote
2 answers

Implementing ElasticSearch into Pyramid

After doing some research on search engines, I decided to go with ElasticSearch, and was wondering what the quickest and most efficient way of implementing it with pyramid is. I've found the documentation for Pyes, but I am not sure if this is the…
Wiz
  • 4,595
  • 9
  • 34
  • 51
1
vote
0 answers

Why won't this Pymongo update work?

I'm writing a small web app with the Pyramid framework (which is awesome) and I'm having trouble updating a document. I have no problems querying for a document with the same id- I just can't seem to update it. Here is the code I'm using: for key,…
1
vote
1 answer

Can I render different parts of a Jinja2 template separately using Pyramid?

I have a page that loads a lot of analytics & data on specific pages and so far its loading okay but I'm wondering if I can speed it up. The idea I had to try to speed it up was to render each part of the separately. For example, look at your…
Lostsoul
  • 25,013
  • 48
  • 144
  • 239
1
vote
3 answers

No exception log output in excepiton.log file in pyramid project with plugin pyramid_exclog under uwsgi

I use uwsgi to deploy my pyramid project. and also use pyramid_exclog to catch exception log which is expected to logto the file exception.log . But all the log info(include the exception log) was output to the file 'project.log' which was setted in…
Tallmad
  • 1,951
  • 4
  • 22
  • 29
1
vote
2 answers

How to ignore repeated slashes in Pyramid

I'd like to make sure that the following two urls are handled in the same way (there's an existing client which sends requests this way): /resource //resource Unfortunately I cannot add both urls to the same route and even if I try using the…
viraptor
  • 33,322
  • 10
  • 107
  • 191
1
vote
1 answer

pyramid on webfaction: problems serving static files

so i have a site on webfaction that runs pyramid. it's all working ok except some static files are not serving. 4 to be specific and i dont know why. http://karantan.webfactional.com/static/images/bg2.jpg this link gives me 404 but the image is…
karantan
  • 885
  • 10
  • 18
1
vote
1 answer

How can I share a selected amount of data with all my templates in pyramid?

I read the cookbook article on making user objects avail to all requests but I may not understand it fully because I can't see if it is related to my problem. I render quite a few templates on a site I'm working on and there's different user info…
Lostsoul
  • 25,013
  • 48
  • 144
  • 239
1
vote
1 answer

Pyramid:How to get current renderer name in view.py at runtime

Pyramid offers a beforeRenderer from repoze.events import subscriber from pyramid.events import BeforeRender @subscriber(BeforeRender) def add_global(event): print event['renderer_name'] #this is the renderer name …
1
vote
2 answers

Pyramid periodic task with Celery

I'm try to use pyramid_celery. I managed to run simple tasks. But how with pyramid run of a periodic tasks? Where I need to write CELERYBEAT_SCHEDULE?
uralbash
  • 3,219
  • 5
  • 25
  • 45
1
vote
2 answers

PasteDeploy throwing TypeError when used with uwsgi

I'm trying to use the --paste option of uwsgi, to serve a pyramid application, but PasteDeploy is throwing a TypeError (coming from Python3 I guess) File "/home/admin/.mozaiqu.es.env/lib/python3.2/site-packages/paste/deploy/loadwsgi.py", line 277,…
b4stien
  • 1,810
  • 13
  • 14
1
vote
0 answers

Error with google appengine using pyramid

Using pyramid_appengine my project works fine but, when i deploy to GAE i have this error: Traceback (most recent call last): File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 187, in Handle handler =…
ajatib
  • 11
  • 1
1
vote
1 answer

Pyramid - Forms and number formatting/localization

I'm considering switching to Pyramid but I'm wondering on how to localize a form. How can I have a form that would accept/validate numbers in a locale specific format? (thousands and decimal separators, etc) Django currently does this for me by…
RS7
  • 2,341
  • 8
  • 34
  • 57
1
vote
1 answer

Pyramid Replacing Double Forward-Slash in URL Matchdict

Essentially, I'm just building an API redirection route inside of Pyramid to process cross-domain AJAX requests without using JSONP. I've added a route, like so: config.add_route("api","/api/{url:.*}") with which I want to capture URLs like…
BraedenP
  • 7,125
  • 4
  • 33
  • 42
1
vote
2 answers

Deform with use_ajax and jQueryForm

When a form is submitted, I'm validating it with Deform. If validation fails I'm passing back the same form with validation warnings attached, and it is replacing the old form. This works fine with AJAX, the first time. After the first time, it…
Devin
  • 2,113
  • 2
  • 22
  • 28
1 2 3
99
100