marioidival / pyramid_mongoengine Goto Github PK
View Code? Open in Web Editor NEWMongoengine Pyramid extension
License: MIT License
Mongoengine Pyramid extension
License: MIT License
Mario, I have a brief question. I run the Mongodb within a container, named mongo_db
, the development.ini
includes these lines:
mongo_uri = mongodb://admin:@mongo_db:27017
mongodb_name = my_db
To initialize the client, I expect the following lines to work:
from pyramid.config import Configurator
from pyramid.paster import get_appsettings
settings = get_appsettings('development.ini')
config = Configurator(settings=settings)
config.include("pyramid_mongoengine")
client = config.add_connection_database()
However, the client refers to localhost:
MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True, read_preference=Primary())
When I tried to connect to the DB, I get a ServerSelectionTimeoutError
:
ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused
So somehow the settings are overwritten by defaults?
Is it possible to update the version which is on the python package index? As it still has the bug with ValidationError not being imported correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.