Re: count

2016-01-28 Thread sum abiut
Thanks heaps works perfectly well. Cheers On Fri, Jan 29, 2016 at 4:09 PM, wrote: > from django.http import HttpResponse > from django.template import loader, RequestContext > > def foreginexchange_view(request): > t = loader.get_template("template.html") >

Re: count

2016-01-28 Thread aspellip
from django.http import HttpResponse from django.template import loader, RequestContext def foreginexchange_view(request): t = loader.get_template("template.html") test=ball.objects.filter(request="checked").count() c = RequestContext(request, {'test': test}) return

Re: proxy model inheritance generates a migration file in a third party app

2016-01-28 Thread Markus Holtermann
Hello Iliana, this is due to the definition of app_label = 'actstream' on your proxy model. This tells Django that this model should belong to another app. Hence the migrations involving that model are added to the actstream app's migrations. /Markus On Friday, January 29, 2016 at 10:14:24

proxy model inheritance generates a migration file in a third party app

2016-01-28 Thread Iliana Toneva
Hello, I am using a third party app actstream (https://github.com/justquick/django-activity-stream) and am creating a proxy for one of the original actstream models : # myapp/models.py from actstream.models import Action # Subclass

Re: Adding a field to a model after initial migration

2016-01-28 Thread Daniel Roseman
On Wednesday, 27 January 2016 21:29:18 UTC, ofeyofey wrote: > > No problem. Thanks for your help. > Maybe fields can't be added to a model with django. > I will try dropping the table in the DB and see what happens. > Thanks again, > Adding fields to models is quite literally what migrations are

Re: Is Django appropriate for my project?

2016-01-28 Thread Fellipe Henrique
Hi, On Thu, Jan 28, 2016 at 2:23 PM, Marisela Mainegra Hing < mainegrah...@gmail.com> wrote: > an online, database-supported application with appropriate skip-logic and > delegation features to ensure the tool is user-friendly. > >It needs to be supported for mobile, lap-top and desk-top

Is Django appropriate for my project?

2016-01-28 Thread Marisela Mainegra Hing
Hello, I am looking for a software to automate a Dashboard tool with the following requirements: an online, database-supported application with appropriate skip-logic and delegation features to ensure the tool is user-friendly. It needs to be supported for mobile, lap-top and

Re: search page

2016-01-28 Thread pa xapy
queryset.filter(title__icontains=query) is not enough? On Wednesday, January 27, 2016 at 12:46:21 AM UTC+3, Xristos Xristoou wrote: > > hello, > > > i want to an easy way to create search page on my site to searching only > the titles. > who is the better and easy way for to doa that ? > mayde

Re: RuntimeError: maximum recursion depth exceeded in cmp

2016-01-28 Thread palansh agarwal
Hey, You may try to re-factor your code and turn it into an iterative one. If that's not possible, try the following: import sys > sys.setrecursionlimit(n) > Increase "n" as per your need. Regards, *Palansh Agarwal | +918239026608 |+919461787317 *

Re: RuntimeError: maximum recursion depth exceeded in cmp

2016-01-28 Thread Tim Graham
I've never seen that before. I think you'll need to provide a sample project that reproduces it so that someone can take a look. On Thursday, January 28, 2016 at 7:45:31 AM UTC-5, Deepak Singh wrote: > > Hi, > > During (python manage.py runserver) command I am getting following error > >

RuntimeError: maximum recursion depth exceeded in cmp

2016-01-28 Thread Deepak Singh
Hi, During (python manage.py runserver) command I am getting following error File "C:\Python27\lib\functools.py", line 56, in '__lt__': [('__gt__', lambda self, other: other < self), File "C:\Python27\lib\functools.py", line 56, in '__lt__': [('__gt__', lambda self, other:

Re: help with ManyToMany

2016-01-28 Thread dave.l
Hi, I am happy with my models, and I'm fine inserting data, what I would like help with is retrieval. given a single instance of a Studio() I can get studio.studiogroup_set.all() which I can then iterate to find the individual studios and build my resulting list ensuring no duplicates and