Finding average

2015-10-01 Thread Bhanu Kathuria
I have attached my model files and template files. Please tell how can i find avg of rating for a particular college. In current format it is displaying rating of all colleges correctly. Along with this I also want to add avg ratings for college. I have used foriegn key in this. -- You received

Change to Query.get_count() causes big performance hit

2015-10-01 Thread Alexander Dementsov
Recent pull merge ​https://github.com/django/django/commit/c7fd9b242d2d63406f1de6cc3204e35aaa025233?diff=unified generates SQL which causes severe performance hit when using distinct parameter. Here is the discussion: https://code.djangoproject.com/ticket/25230 -- You received this message b

Re: django on Windows

2015-10-01 Thread Tim Graham
Here's a new pull request to improve the installation instructions for Windows. Feedback and testing would be appreciated! https://github.com/django/django/pull/5376 On Thursday, October 1, 2015 at 4:49:58 PM UTC-4, Avraham Serour wrote: > > don't, just use the regular python from python.org, an

Re: django on Windows

2015-10-01 Thread Avraham Serour
don't, just use the regular python from python.org, and please use the 64 bit version On Thu, Oct 1, 2015 at 10:32 PM, Ricardo Daniel Quiroga < l2radamant...@gmail.com> wrote: > The Best way is install activepython use 32bits for more compatibility > with any modules and open cmd.exe > > pip inst

RE: django on Windows

2015-10-01 Thread Ricardo Daniel Quiroga
The Best way is install activepython use 32bits for more compatibility with any modules and open cmd.exe pip install -upgrade pip pip install django sorry for bad english . I speak spanish :( -Mensaje original- De: Robin Lery Enviado: 01/10/2015 09:23 Para: django-users@googlegroup

django rest framework - access token user

2015-10-01 Thread Shekar Tippur
Hello, I am trying to get the user name from a token request. Here is what I have so far: from rest_framework.authtoken.models import Token class getTokenl(generics.RetrieveDestroyAPIView): permission_classes = [permissions.IsAuthenticated, TokenHasReadWriteScope] queryset = Parcel.obj

Re: virtualenv best practice / source control

2015-10-01 Thread graeme
On Thursday, October 1, 2015 at 5:51:57 PM UTC+5:30, junk wrote: > > Greetings wise django users, > > Can someone provide a link or description of how to use > virtualenv/django/source-control all at the same time? > > I thought I would put my virtualenv code, and django, and a starter > projec

ANN: eGenix PyRun - One file Python Runtime 2.1.1

2015-10-01 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyRun - One file Python Runtime Version 2.1.1 An easy-to-use single file relocatable Python run-time - available for Linux, Mac OS X and U

Re: virtualenv best practice / source control

2015-10-01 Thread Rafael E. Ferrero
this is for Django 1.6 but you can use it anyway http://www.jeffknupp.com/blog/2013/12/18/starting-a-django-16-project-the-right-way/ -- Rafael E. Ferrero 2015-10-01 9:11 GMT-03:00 junk : > Greetings wise django users, > > Can someone provide a link or description of how to use > virtualenv/dj

Re: django on Windows

2015-10-01 Thread Robin Lery
Did you install python? And is it in your environmental variable? If both the answers yes then you could try all the commands using cmd prompt in windows. On 1 Oct 2015 17:51, "Антон Заровский" wrote: > How use concole commands at windows? > > -- > You received this message because you are subscr

virtualenv best practice / source control

2015-10-01 Thread junk
Greetings wise django users, Can someone provide a link or description of how to use virtualenv/django/source-control all at the same time? I thought I would put my virtualenv code, and django, and a starter project in source control. That was a fail - when the directories moved, nothing wo

django on Windows

2015-10-01 Thread Антон Заровский
How use concole commands at windows? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email

Re: Corrupted Migration?

2015-10-01 Thread James Schneider
> I have tried that (by the way, the offending migration didn't show up in the django_migrations table because the migration failed). > > I think we might be talking past each other. Sorry if I'm being unclear. Here's an example of what's going on: > Before migration, my database is at state X, and

Re: upload zip or rar files

2015-10-01 Thread James Schneider
> FYI, > it works if the zip or the rar files were generated in windows, > > not if they come from Linux =(... > > Do you mean that the client is running Windows and can't see zip files that were generated on a Linux machine, or that the client is Linux and you can't see files generated by that cl