pyramid Questions
11
Simplified, I have the following class structure (in a single file):
Base = declarative_base()
class Item(Base):
__tablename__ = 'item'
id = Column(BigInteger, primary_key=True)
# ... skip oth...
Adina asked 1/2, 2012 at 0:8
5
Solved
I have a Pyramid application which uses request.environ['REMOTE_ADDR'] in some places.
The application is served by Python Paste on port 6543 and a nginx server listening on port 80 is forwarding ...
Waldgrave asked 21/2, 2012 at 15:20
2
Solved
I want to parse .rst files to .html files on the fly to display as a webpage. I'm using pyramid, and I haven't found any quick help on how to use docutils inside python code and make it write to a ...
9
Solved
I am working in a pyramid project and I've the table in SQLAlchemy in declarative syntax
"""models.py"""
class Projects(Base):
__tablename__ = 'projects'
__table_args__ = {'autoload': True}
I ...
Abmho asked 23/6, 2011 at 14:19
3
Solved
I'm attempting to configure SQLAlchemy Alembic for my Pyramid project and I want to use my developement.ini (or production.ini) for the configuration settings for Alembic. Is it possible to specify...
2
Solved
I'm using SQLAlchemy via pyramid accessing a simple sqlite database.
As I was building my progressively more complex queries, I got this warning:-
SAWarning: Dialect sqlite+pysqlite does not supp...
Phyle asked 8/1, 2016 at 9:52
1
Doing i18n work with Python using Jinja2 and Pyramid. Seems to have a problem knowing how it should translate %%. I'm beginning to suspect the bug is in Jinja2.
So I've done some more investigat...
Nudibranch asked 18/1, 2017 at 22:41
1
postgresql_where is useful to get around the (in my opinion wrong, but apparently the SQL standard defines it) way in which Postgres defines unique-ness, where Null values are always unique. A typi...
Abruption asked 20/4, 2018 at 4:26
5
Solved
I have a table where I would like to fetch all the column names however after browsing the interwebs I could not find a way that works. This is what my table looks like:
class myTable(Base):
__ta...
Threequarter asked 25/7, 2014 at 15:45
4
Solved
I'm running SQLAlchemy with Pyramid. I'm trying to run a query with a custom 'join' condition :
DBSession.query(A)\
.outerjoin(A.b, B.a_id == A.id)\
.all()
however the query fails the followin...
Rajasthani asked 15/12, 2015 at 13:50
4
Solved
Is there a recommended way to diagnose the cause of task queue depth warnings like the one below from waitress? Perhaps there is some way to log queued tasks / requests?
2019-04-25 14:45:23,048 ...
Ludwig asked 25/4, 2019 at 20:20
6
Solved
I'm trying to use Apex and whenever I try to import it (or anything involving it) I get the following traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <m...
Child asked 13/3, 2021 at 5:21
3
Solved
I have these tables tables:
class Thing(Base):
__tablename__ = 'thing'
id = Column(Integer, primary_key=True)
class User(Base):
__tablename__ = 'user'
id = Column(Integer, primary_key=True)
...
Horsa asked 6/10, 2011 at 8:30
4
Solved
I am new to both Pyramid and SQLAlchemy. I am working on a Python Pyramid project with SQLAlchemy. I have a simple model set up below. How would I go about being able to use this with different sch...
Bagpipe asked 26/12, 2013 at 15:49
17
Solved
I couldn't find any information about this in the documentation, but how can I get a list of tables created in SQLAlchemy?
I used the class method to create the tables.
Hoffman asked 24/6, 2011 at 21:25
2
Solved
I know about content-disposition but I read what it uses for email messages. And I want to know how I can set file name with content-type.
ps I use Pyramid framework
edit:
Web site has button 'dow...
2
Solved
I have scheduled a few recurring tasks with celery beat for our web app
The app itself is build using pyramid web framework. Using the zopetransaction extension to manage session
In celery, I am ...
Buzz asked 28/5, 2013 at 12:24
5
Solved
I have this table in my Pyramid app
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
.....
is_active = Column(Boolean, unique=False)
def __init__(self, name, r...
Mats asked 20/8, 2012 at 21:48
1
My repository can be found here http://goo.gl/Q4WJXy (versions inside alembic folder)and I tried to use autogenerate migrations,
alembic revision --autogenerate -m "some message"
there is nothi...
Congou asked 11/11, 2013 at 5:30
2
Solved
I am having a pyramid application which uses sqlalchemy and alembic for databases and migrations. I need to remove default specifier from my model class and add a alembic version script to it.
Pr...
Currish asked 27/3, 2019 at 5:15
3
This is very similar to another question that's over 3 years old: What's a good general way to look SQLAlchemy transactions, complete with authenticated user, etc?
I'm working on an applicatio...
Raffinate asked 11/4, 2013 at 15:24
6
Solved
I'm having problems with trying to catch an error. I'm using Pyramid/SQLAlchemy and made a sign up form with email as the primary key. The problem is when a duplicate email is entered it raises a I...
Towelling asked 3/7, 2012 at 15:12
3
Solved
Let's say you're implementing sessions.
You check whether the browser presents a session cookie. If yes, you authenticate the cookie and find the user that the session is associated with, and move ...
1
Solved
We have a pyramid web application.
We use [email protected] with Zope transactions.
In our application, it is possible for an error to occur during flush as described here which causes any s...
Gravamen asked 7/10, 2021 at 14:6
5
Solved
I am using SQLAlchemy as ORM for a python project. I have created few models/schema and it is working fine. Now I need to query a existing MySQL database, no insert/update just the select statement...
Pruitt asked 10/10, 2016 at 9:45
1 Next >
© 2022 - 2025 — McMap. All rights reserved.