Why is exclude() different than difference()?

2018-02-06 Thread viper12xn
Hi, I have the following models: Abonnent -1:n- Sendungsadresse -1:1- Redresse Model `Abonnent` has 99681 rows. This query returns 829 rows, as expected: `Abonnent.objects.filter(sendungsadresse__redresse__isnull=False, sendungsadresse__redresse__korrigiert_am__isnull=True).distinct()` The

Re: Optimal query for related names in onetomany or manytomany using Django Queryset

2018-02-06 Thread Web Architect
Hi Furbee, Thanks for the suggestion. Would look into it. Thanks. On Sunday, February 4, 2018 at 10:32:20 AM UTC+5:30, Furbee wrote: > > You can set up an index on multiple field, as well, so if you’re searching > for As without a reference from B or C, using the index_together operative > i

Re: Django Postgresql Heroku : Operational Error - 'FATAL too many connections for role “usename”'

2018-02-06 Thread Andrew Godwin
This is a known issue: https://github.com/django/channels/issues/871 Andrew On Tue, Feb 6, 2018 at 5:30 AM, Tomiwa Ademidun wrote: > > 0down votefavorite > > > I am runnin

Re: Testing Channels database data missing in Consumer

2018-02-06 Thread Andrew Godwin
I'm not quite sure either. Does the test setup work if you are not in async mode? Andrew On Tue, Feb 6, 2018 at 9:45 AM, Daniel Gilge wrote: > Hi, > > this question is related to Channels 2.0, Django 2.0, pytest 3.4, > pytest-django 3.1 and pytest-asyncio 0.8. > > I created a pytest: > > @pytes

Re: django-channels-2.0 Postgresql Heroku : Operational Error - 'FATAL too many connections for role “usename”'

2018-02-06 Thread Andrew Godwin
This is an open issue in Channels 2, see here: https://github.com/django/channels/issues/871 Andrew On Tue, Feb 6, 2018 at 5:37 AM, Tomiwa Ademidun wrote: > I am running a web application using Django and Django Rest Framework on > Heroku with a postgresql and redis datastore. I am on the free

Testing Channels database data missing in Consumer

2018-02-06 Thread Daniel Gilge
Hi, this question is related to Channels 2.0, Django 2.0, pytest 3.4, pytest-django 3.1 and pytest-asyncio 0.8. I created a pytest: @pytest.fixture def db_with_obj(db): factories.MyModelFactory() @pytest.mark.asyncio async def test_something(db_with_obj): print(models.MyModelFactory.ob

django-channels-2.0 Postgresql Heroku : Operational Error - 'FATAL too many connections for role “usename”'

2018-02-06 Thread Tomiwa Ademidun
I am running a web application using Django and Django Rest Framework on Heroku with a postgresql and redis datastore. I am on the free postgresql tier which is limited to 20 connections. This hasn't been an issue in the past, but recently I started using django channels 2.

Django Postgresql Heroku : Operational Error - 'FATAL too many connections for role “usename”'

2018-02-06 Thread Tomiwa Ademidun
0down votefavorite I am running a web application using Django and Django Rest Framework on Heroku with a postgresql and redis datastore. I am on the free postgresql tie

Re: Please support Django Girls Fundraising Campaign (sorry for irrelevant topic in this group)

2018-02-06 Thread Etienne Robillard
Le 2018-02-06 à 15:04, Matemática A3K a écrit : It is not, so it is not country specific yet there are Python/Django communities in almost every country... but seems like a long way to go until humanity realizes the stupidity of borders and give up segregation in whatever condition they p

Re: Please support Django Girls Fundraising Campaign (sorry for irrelevant topic in this group)

2018-02-06 Thread Matemática A3K
On Tue, Feb 6, 2018 at 4:12 PM, Etienne Robillard wrote: > > > Le 2018-02-06 à 13:55, Gerardo Palazuelos Guerrero a écrit : > > the django girls project was my introduction to django, and it was a good > one. > > I don't know man. > Basically I guess programming Django/Python is not gender specif

Re: Django-hotsauce: Current status and roadmap

2018-02-06 Thread Etienne Robillard
Hi, Someone really need to explain how to properly test/benchmark Django with unittest integration. I'm looking to test/benchmark the django models API against Non-SQL databases like Schevo, ZODB, and Durus. i plan to isolate and verify the latency of basic SQL database querying with sqlite3

Re: Please support Django Girls Fundraising Campaign (sorry for irrelevant topic in this group)

2018-02-06 Thread Etienne Robillard
Le 2018-02-06 à 13:55, Gerardo Palazuelos Guerrero a écrit : the django girls project was my introduction to django, and it was a good one. I don't know man. Basically I guess programming Django/Python is not gender specific, so it makes very little difference to me. thanks to all people an

Re: Preventing apps installing duplicate models

2018-02-06 Thread Matemática A3K
On Tue, Feb 6, 2018 at 1:23 PM, Murat Sert wrote: > Hi, > > I'm working on a project upgrade from Django 1.8 to 1.11. They've used a > custom registration app which is inheriting from Django Registration Redux > package. > Both packages are listed on installed_apps list. All works fine however >

Re: Please support Django Girls Fundraising Campaign (sorry for irrelevant topic in this group)

2018-02-06 Thread Gerardo Palazuelos Guerrero
the django girls project was my introduction to django, and it was a good one. thanks to all people and their time... and good luck -- Gerardo Palazuelos Guerrero On Tue, Feb 6, 2018 at 4:46 AM, Anna Makarudze wrote: > Hello all, > > > My name is Anna Makarudze. I am the Django Girls Foundat

Re: Please support Django Girls Fundraising Campaign (sorry for irrelevant topic in this group)

2018-02-06 Thread Matemática A3K
On Tue, Feb 6, 2018 at 8:46 AM, Anna Makarudze wrote: > Hello all, > > > My name is Anna Makarudze. I am the Django Girls Foundation Fundraising > Coordinator. > > > I would like to take this opportunity to inform you about the crowdfunding > project we launched this week to raise funds which we

Re: Dynamic creation of models

2018-02-06 Thread Matemática A3K
On Tue, Feb 6, 2018 at 8:35 AM, Marc wrote: > Hello > > > > Currently working on a project to allow researchers to upload data files > into a repository. The system will only handle the import, validation and > transformation of the data, so that it meets the required standards. When a > file is

Re: I hope to increase OneToOne mode GenericForeignKey

2018-02-06 Thread Matemática A3K
On Mon, Feb 5, 2018 at 6:57 PM, Ma Mars wrote: > I hope to increase OneToOne mode GenericForeignKey, > For example, a passport (one user has only one passport, but there are > many user roles, such as staff, drivers, customers, but they are one to one) > It's hard to understand what you are tryi

Preventing apps installing duplicate models

2018-02-06 Thread Murat Sert
Hi, I'm working on a project upgrade from Django 1.8 to 1.11. They've used a custom registration app which is inheriting from Django Registration Redux package. Both packages are listed on installed_apps list. All works fine however when I try to run tests, where it creates test tables back to

Re: Dynamic creation of models

2018-02-06 Thread Jani Tiainen
Hi, That's why I suggested ArangoDB since it's really transactional like normal relational databases. It's harder to get it out of sync than for example MongoDB. Also surprisingly ArangoDB query language is really close to SQL. You should give it a spin. That was the reason we picked ArangoD

Re: Dynamic creation of models

2018-02-06 Thread Marc
This is an interesting article against document databases, I am sure though that there are equally valid arguments for http://www.sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/ On Tuesday, February 6, 2018 at 1:14:41 PM UTC, Marc wrote: > > Thank you Jani, for taking the time to r

Re: Dynamic creation of models

2018-02-06 Thread Marc
Thank you Jani, for taking the time to respond. We are currently at the design stage so are considering all options. We have used document databases (MongoDB) for other projects and in those cases it turned out to not be good fit. I agree that at first glance a document database does feels like

Re: Dynamic creation of models

2018-02-06 Thread Jani Tiainen
Hi, Since you're uploading more like documents than similary structured data, why not to use more proper tool, like document database (ArangoDB would get my vote) instead of trying to do what Django is not designed for and doesn't support well with concepts like "dynamic models". We do simil

Please support Django Girls Fundraising Campaign (sorry for irrelevant topic in this group)

2018-02-06 Thread Anna Makarudze
Hello all, My name is Anna Makarudze. I am the Django Girls Foundation Fundraising Coordinator. I would like to take this opportunity to inform you about the crowdfunding project we launched this week to raise funds which we need to continue our work in bringing in more women to coding. Si

Dynamic creation of models

2018-02-06 Thread Marc
Hello Currently working on a project to allow researchers to upload data files into a repository. The system will only handle the import, validation and transformation of the data, so that it meets the required standards. When a file is upload the for the first time the user has to be abl

Re: chemistry character set

2018-02-06 Thread Mike Dewhirst
On 6/02/2018 10:08 PM, Jason wrote: At first glance, I thought this was an easy problem to have, but apparently it is certainly not!  I came across an Oracle whitepaper  that describes how t

Re: chemistry character set

2018-02-06 Thread Mike Dewhirst
On 6/02/2018 10:27 PM, Julio Biason wrote: Hi Mike, One thing that occurs me is that you can override the model save() to update another field -- one that the user doesn't have access. On that function, you will write a new field, say `sortable_name` in which you'll transfor the chemical name

Re: chemistry character set

2018-02-06 Thread Julio Biason
Hi Mike, One thing that occurs me is that you can override the model save() to update another field -- one that the user doesn't have access. On that function, you will write a new field, say `sortable_name` in which you'll transfor the chemical name into something that will appear in the proper o

Re: chemistry character set

2018-02-06 Thread Jason
At first glance, I thought this was an easy problem to have, but apparently it is certainly not! I came across an Oracle whitepaper that describes how to sort your linguistic data, and you

Re: channels v2.0.0 disconnect function not triggering

2018-02-06 Thread Andrew Godwin
You are not using it incorrectly - this is a known issue: https://github.com/django/daphne/issues/152 Andrew On Mon, Feb 5, 2018 at 11:53 PM, Ahmed Magdy wrote: > It seems like I cannot get the disconnect function in the consumer to get > called at all. > > class ChatConsumer(WebsocketConsumer)