Home database access from asynchronous code in Django-channels
Reply: 0

database access from asynchronous code in Django-channels

user408
1#
user408 Published in July 16, 2018, 11:59 pm

I need some help. I'm using Django-channels and I need for some purpose make several DB calls. Docs not clear for me: https://channels.readthedocs.io/en/latest/topics/databases.html
So, what one of the following is the right way?
1. Create/call function for each database access with a decorator.
2. Make all calls to the database in one function, which wrapped by decorator?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.314356 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO