Result of queryset in Django 1.10 is not sorted

2017-09-04 Thread Priyanka Thakur
Hi, As part of migration to Django 1.10.4 from 1.7, I have noticed that queryset results are unsorted, compared to previous version. Has same behaviour been observed by anyone? Regards, Priyanka -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: How to add more fields to each ManyToMany Field in Django?

2017-09-04 Thread Mark Phillips
I replied to your StackOverflow question. An error in your through model caused the no such table error. Keep in mind that web pages are only generated once, and then presented to the user. If you want the page to display the cost of the course based on the university you pick on this page in the

Re: Processing data sent by sockets in django-channels

2017-09-04 Thread Andrew Godwin
Hi, I don't keep track of stack overflow so I don't know if anybody else would answer stuff there. Secondly, I replied to a very similar question you asked on this list last week - is this the same problem as that? Andrew On Mon, Sep 4, 2017 at 1:45 AM, Samuel Muiruri wrote: > According to dj

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-04 Thread Melvyn Sopacua
Is it possible you create your virtual environments with global site-packages? >From what I'm seeing this is caused primarily by version mismatches of the six library and using OS site-packages with virtualenv would certainly do it as setuptools and pip both use six. The difference with 1.10/1.11

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-04 Thread Derek Zeng
Hi Melvyn, Renaming MIDDELWARE_CLASSES doesn't help either. These are the requirements I have: django==1.10.5 djangorestframework markdown django-filter django-jinja pytest factory_boy fabric3 pytest-django feedparser==5.2.1 pytz PyYAML lxml requests django-extensions Werkzeug django-cors-he

How to add more fields to each ManyToMany Field in Django?

2017-09-04 Thread Omer Iqbal
Hi, Is it possible to add one or more field (Char Field) to the options of ManyToMany field? My current models result in this: *My Models:* class engineeringUni(models.Model): field2 = models.CharField(max_length=200) des_eng = models.C

Re: Tests broken when I have two database in settings

2017-09-04 Thread Melvyn Sopacua
Did you read the documentation on this? https://docs.djangoproject.com/en/1.11/topics/testing/advanced/#tests-and-multiple-databases On Mon, Sep 4, 2017 at 3:16 PM, Rodrigo Braga wrote: > Hello, > > I have troubles when I try running tests with two databases configured. > > I have migrations wit

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-04 Thread Melvyn Sopacua
Rename MIDDLEWARE_CLASSES to MIDDLEWARE in settings to see if that changes anything. If not, remove one by one (except static). There are some changes to the static files middleware [1], but I can't really relate that to your error. Is there anything in your project requirements that also uses six

Tests broken when I have two database in settings

2017-09-04 Thread Rodrigo Braga
Hello, I have troubles when I try running tests with two databases configured. I have migrations with RunPython (where the problem occurs). I opened a thread on Stackoverflow [1] but without answers yet. * sorry my English [1] https://stackoverflow.com/questions/45962149/django-tests-broken-w

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-04 Thread Derek Zeng
If I turn off debug mode, it gives me 500 error and showing the same stack trace in the console. I also tried 1.11.4, still the same error. On Mon, Sep 4, 2017 at 2:33 AM, Raffaele Salmaso wrote: > On Sun, Sep 3, 2017 at 4:26 PM, Derek Zeng wrote: >> >> When I use django==1.10.7, this does not

Re: Python 2 versus 3

2017-09-04 Thread Ari Davidow
Python 2 in general is reaching end of life. If you have the time to make the transition to Python 3 now, it will be significantly easier to maintain your installation (or any other python application) moving forward. ari On Mon, Sep 4, 2017 at 2:04 AM, BIJAL MANIAR wrote: > > Hi, > > I have cu

Re: Channels - Forward messages from a third party async source.

2017-09-04 Thread Dan Tagg
Hi Roger, Have you seen Diamond (http://diamond.readthedocs.io/en/latest/) it may be just what you need on the client side. Graphite (the server process) runs on Django. Dan On 1 September 2017 at 11:56, Roger Gammans wrote: > Hi all, > > I'm trying to build a system with a Django frontend whi

Re: Channels - Forward messages from a third party async source.

2017-09-04 Thread Roger Gammans
Andrew, Thanks for that. Is there is anything I should avoid in my design and worker process to ensure it would be compatible with what goes in later versions of channels? On Fri, 2017-09-01 at 12:38 -0700, Andrew Godwin wrote: > Hey, > You can send onto Channels from anywhere, event loop or no

Processing data sent by sockets in django-channels

2017-09-04 Thread Samuel Muiruri
According to django-channels' github any "help" related issue should be posted here, I've asked this question before here and on stack with no response, don't feel the need to but if I don't get an adequate response I might need to hire a dev to implement this for me. I have this code for a socket

Re: Python 2 versus 3

2017-09-04 Thread James Bennett
Here is a very comprehensive article on why Python 3 is an improvement over Python 2: https://eev.ee/blog/2016/07/31/python-faq-why-should-i-use-python-3/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r