Re: Raw query returns 1 row but outputting multiple rows in template

2016-10-06 Thread Andromeda Yelton
What's in the get_digital_client_summary() function? On Thu, Oct 6, 2016 at 6:18 AM, Thomas Brightwell < thomas.brightw...@gmail.com> wrote: > Hi, > > I have a raw query returning one row which is then shown 8 times in the > template. I have debugged and there is only one line when this is execut

Mypy-django: Enable static type checking in your django projects

2016-10-06 Thread Elías Andrawos
Hi all, We’re happy to make a release of mypy-django 0.1.1, the first of many! It’s a collection of type stubs for using with the mypy static type checking tool (and also with other PEP-484 compliant tools). more info; http://www.machinalis.com/blog/first-release-of-mypy-django/

Re: Sharding DB: one database per user dynamically

2016-10-06 Thread Erik Cederstrand
> Den 6. okt. 2016 kl. 15.34 skrev Stefano Tranquillini > : > > Well, not really. > > I would like to shard the db, but probably i can just build a function to > write on DB1 or DB2 depending on the user id, this should be feasible, isn't > it? Yes, that would be feasible, of course. You co

Re: Sharding DB: one database per user dynamically

2016-10-06 Thread Stefano Tranquillini
Well, not really. I would like to shard the db, but probably i can just build a function to write on DB1 or DB2 depending on the user id, this should be feasible, isn't it? then i'll check how to export based on user_id. that's a nice idea, i just have to figure out how to do with all the refer

Re: How to debug oauth2 code?

2016-10-06 Thread Etienne Robillard
Any ideas why my Google oauth 2.0 client does only allow my user info to be published? I want to implement a simple authentication middleware for protection of a django view using OAuth 2.0 authentication and oauthlib. Thanks, Etienne PS: a Live demo is here: http://www.isotopesoftware.ca L

[ANNOUNCE] Maintenance versions 3.4.1 and 3.3.3 released

2016-10-06 Thread czpython
Hello all, The django CMS core team just released 3.4.1 and 3.3.3 maintenance versions. Please report any issues you find to our issue tracker at https://github.com/divio/django-cms/issues. More information can be found on our blog https://www.django-cms.org/en/blog/2016/10/05/maintenance-vers

Raw query returns 1 row but outputting multiple rows in template

2016-10-06 Thread Thomas Brightwell
Hi, I have a raw query returning one row which is then shown 8 times in the template. I have debugged and there is only one line when this is executed in the shell and I do a simple for loop print output. So it seems to be something about the template tags? The raw query which definitely only

Re: Advanced search with aggregations

2016-10-06 Thread Raffa
Hi Kirby, unfortunately my project is developed on Django 1.6, I have to upgrade it But I think that your project is good for me. I'll try it. Many thanks! Il giorno giovedì 6 ottobre 2016 10:48:51 UTC+2, C. Kirby ha scritto: > > Hi Raffa, > I've built a third-party app that builds an "advan

Re: Advanced search with aggregations

2016-10-06 Thread C. Kirby
Hi Raffa, I've built a third-party app that builds an "advanced search" style form. >From the posted form it builds an query against your model which you can then aggregate on (either statically with a defined field, or you could provide a second for asking which field the user would like to agg

Re: Sharding DB: one database per user dynamically

2016-10-06 Thread Erik Cederstrand
> Den 6. okt. 2016 kl. 09.54 skrev Stefano Tranquillini > : > > Hi all, > > I quickly skimmed into the group but i did not find an updated answer. > > what i want to do is to have a database for each user that register to my > service, the structure of the databse is the same for all, the da

Sharding DB: one database per user dynamically

2016-10-06 Thread Stefano Tranquillini
Hi all, I quickly skimmed into the group but i did not find an updated answer. what i want to do is to have a database for each user that register to my service, the structure of the databse is the same for all, the data are just separated. I want to do this for two reasons: - be able to move