Re: Daphne does not handle wss requests

2017-02-25 Thread Giovanni Colapinto
Sadly it doesn't work, also with DEBUG=False On Saturday, 25 February 2017 02:19:17 UTC+1, chris rose wrote: > > I too experience this in my local development environment > > I find secure web sockets throwing an error in the browser console when > attempting to send a message: > >

Re: Benefit of 'return Foo.objects.all()' in a ListView

2017-02-25 Thread Melvyn Sopacua
Hi Richard, On Friday 24 February 2017 15:51:15 Richard Jackson wrote: > What is the advantage of including the get_queryset(self) function in > a ListView? When I've run it with a very basic model ('Foo') there > doesn't appear to be any difference with/without it - this could well > be that my

Re: Benefit of 'return Foo.objects.all()' in a ListView

2017-02-25 Thread Richard Jackson
Grand, thank you for clarifying! On Saturday, February 25, 2017 at 9:32:32 AM UTC, Melvyn Sopacua wrote: > > Hi Richard, > > On Friday 24 February 2017 15:51:15 Richard Jackson wrote: > > > What is the advantage of including the get_queryset(self) function in > > a ListView? When I've run it

Re: Benefit of 'return Foo.objects.all()' in a ListView

2017-02-25 Thread Richard Jackson
Apologies if this is too off-topic, but in the case of using a get_queryset() as below: class MyBlogPosts(generic.ListView): def get_queryset(self, request): return self.model.objects.filter(user=self.request.user) ...is it possible to return two uniquely identifiable

Re: Benefit of 'return Foo.objects.all()' in a ListView

2017-02-25 Thread ludovic coues
That's what regroup is for https://docs.djangoproject.com/en/1.10/ref/templates/builtins/#regroup 2017-02-25 12:42 GMT+01:00 Richard Jackson : > Apologies if this is too off-topic, but in the case of using a > get_queryset() as below: > > class MyBlogPosts(generic.ListView):

Re: Benefit of 'return Foo.objects.all()' in a ListView

2017-02-25 Thread Melvyn Sopacua
Hi Richard, Don't be discouraged to ask questions. It's what the list is for. Ludovic is right, you'd normally use the regroup tag. But let's say you wanted to do this, then get_queryset isn't the right method. It should return a queryset, and one only. On Saturday 25 February 2017 03:42:11

Re: Template packages for simple data entry and table data management for business applications

2017-02-25 Thread Melvyn Sopacua
On Friday 24 February 2017 01:15:12 Kai Fisch wrote: > Is there any widget/template set i can download and create web-based > applications by simply instantiating templates/widgets for my model > elements? I realy like the admin site but I came across some postings > saying that this is a bad

"TemplateDoesNotExist at /"

2017-02-25 Thread Richard Belew
"TemplateDoesNotExist at /" (full trace log at http://dpaste.com/3XZ8H3C) this must be near the top of django newby issues, but i'm stumped on the simplest example i can generate: i've used the `settings.TEMPLATES.DIRS` variable to specify a shared templates directory (also to simplify things),

Re: "TemplateDoesNotExist at /"

2017-02-25 Thread ludovic coues
yep, look like your settings are wrong try to add that at the end of your settings.py and watch the console you are using to launch django print(TEMPLATES["DIRS"]) print(BASE_DIR) 2017-02-25 23:05 GMT+01:00 Richard Belew : > another possibly relevant bit: the

Re: "TemplateDoesNotExist at /"

2017-02-25 Thread Richard Belew
another possibly relevant bit: the Template-loader postmortem shows: Django tried loading these templates, in this order: > > Using engine django: > >- django.template.loaders.filesystem.Loader: > >

Re: "TemplateDoesNotExist at /"

2017-02-25 Thread Richard Belew
wow, very good and thank you!it was this mal-formed line: 'DIRS': [ ( os.path.join(BASE_DIR, 'templates'), ) ], which should have been: 'DIRS': [ os.path.join(BASE_DIR, 'templates'), ], i had an extra set of parentheses, for whatever bad reason. thanks again! On

Re: "TemplateDoesNotExist at /"

2017-02-25 Thread Michal Petrucha
On Sat, Feb 25, 2017 at 01:20:49PM -0800, Richard Belew wrote: > "TemplateDoesNotExist at /" > > (full trace log at http://dpaste.com/3XZ8H3C) > > this must be near the top of django newby issues, but i'm stumped > on the simplest example i can generate: > > i've used the

Re: Subquery has too many columns

2017-02-25 Thread eltonplima
For me it's realy a bug. I need to report them? On Tuesday, February 21, 2017 at 11:55:16 PM UTC-3, eltonplima wrote: > > I tried many things, only work if I remove the annotate or > remove base_manager_name. But I need both! > > The save method is not the problem, I removed. > > If the last

Django module for a tag input field on a user form, with autocomplete & automatic adding new tags?

2017-02-25 Thread Mark London
I want to have a django form that has a field that allows inputting tags, with autocomplete functionality, and the ability to automatically add new tags. I was using django-tagulous for this, until I discovered that pasting a series of 3 or more comma delimited strings, would cause the

group by 3 fields

2017-02-25 Thread Larry Martell
I have a query set and I need to do the SQL equivalent of GROUP BY col1, col2, col3 I have read many SO posts about using aggregate and count but I have not been able to get this to work using 3 columns. Anyone know how to do this? -- You received this message because you are subscribed to the