GithubHelp home page GithubHelp logo

Comments (4)

rozza avatar rozza commented on July 28, 2024

Will look into once back from europython

On Fri, Jul 6, 2012 at 8:58 AM, Anthony Nemitz <
[email protected]

wrote:

Should support all connection params detailed here:
http://api.mongodb.org/python/current/api/pymongo/connection.html


Reply to this email directly or view it on GitHub:
#3

from flask-mongoengine.

anemitz avatar anemitz commented on July 28, 2024

Would be happy to submit a patch.

I was thinking about switching to a dict for all MongoEngine settings so you would have something like this in your config:

MONGOENGINE_SETTINGS = {
    'HOST': 'localhost',
    'DB': 'example_db',
    'TZ_AWARE': True,
    ...
}

And for backwards compatibility fallback to the existing, supported settings (MONGODB_DB, MONGODB_HOST, etc.).

Thoughts?

from flask-mongoengine.

rozza avatar rozza commented on July 28, 2024

Yeah I think that is cleaner or could just preppend all mongoengine
configs, actually +1 for the dict.

Will update and release on Monday. Have to handle old configs as well.

On Friday, July 6, 2012, Anthony Nemitz wrote:

Would be happy to submit a patch.

I was thinking about switching to a dict for all MongoEngine settings so
you would have something like this in your config:

MONGOENGINE_SETTINGS = {
    'HOST': 'localhost',
    'DB': 'example_db',
    'TZ_AWARE': True,
    ...
}

And for backwards compatibility fallback to the existing, supported
settings (MONGODB_DB, MONGODB_HOST, etc.).

Thoughts?

Reply to this email directly or view it on GitHub:

#3 (comment)

from flask-mongoengine.

rozza avatar rozza commented on July 28, 2024

@anemitz thanks for the ticket and patch - this has been released in 0.5

from flask-mongoengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.