Coder Social home page Coder Social logo

muffin-example's Introduction

muffin-example's People

Contributors

dependabot[bot] avatar klen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rafalohaki

muffin-example's Issues

Error when I run make run or muffin example run

$ muffin example pw_migrate
[2017-05-16 13:40:22 -0300] [30559] [INFO] Application is loaded: example
Starting migrations
INFO:peewee_migrate:Starting migrations
Migrate "000_initial"
INFO:peewee_migrate:Migrate "000_initial"
Done 000_initial
INFO:peewee_migrate:Done 000_initial
Migrate "001_auto"
INFO:peewee_migrate:Migrate "001_auto"
add_column ('user', 'created', <peewee.DateTimeField object at 0x7feef246ccf8>)
INFO:peewee_migrate:add_column ('user', 'created', <peewee.DateTimeField object at 0x7feef246ccf8>)
add_column ('user', 'drop_me', <peewee.CharField object at 0x7feef246ce80>)
INFO:peewee_migrate:add_column ('user', 'drop_me', <peewee.CharField object at 0x7feef246ce80>)
rename_column ('user', 'drop_me', 'new_drop_me')
INFO:peewee_migrate:rename_column ('user', 'drop_me', 'new_drop_me')
add_index ('user', ['new_drop_me'])
INFO:peewee_migrate:add_index ('user', ['new_drop_me'])
drop_column ('user', 'new_drop_me')
INFO:peewee_migrate:drop_column ('user', 'new_drop_me')
Done 001_auto
INFO:peewee_migrate:Done 001_auto

$ muffin example example_data
[2017-05-16 13:40:48 -0300] [30621] [INFO] Application is loaded: example
'ModelOptions' object has no attribute 'get_sorted_fields'

$ muffin example run            
[2017-05-16 13:15:46 -0300] [28337] [INFO] Application is loaded: example

Error: 'django_settings'

Async Peewee example is no longer suported?

I try to make something like [1]:

@app.register('/db-async')
def db_async(request):
    results = yield from app.peewee.query(Test.select())
    return [t.data for t in results]

But I received an error AttributeError: 'Application' object has no attribute 'peewee'
If try with app.ps.peewee.query() I received error AttributeError: 'Plugin' object has no attribute 'query'

Is there any way to run queries async?

[1] https://github.com/klen/muffin-example/blob/master/example/views.py#L118-121

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.