Re: Daphne does not handle wss requests

2017-02-24 Thread chris rose
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: InvalidStateError: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. I had attributed this

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

2017-02-24 Thread Richard Jackson
Hi there, I'm starting to learn about Django views and wanted to ground my understanding. 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

Re: Models/Foreign Keys best practice

2017-02-24 Thread Richard Jackson
Hi Melvyn, This worked perfectly, and definitely helped with my own understanding, thank you! For the sake of formatting I've included my interpretation of your suggestion: # models.py from django.db import models from django.utils import timezone class Performance(models.Model):

Re: Daphne does not handle wss requests

2017-02-24 Thread Andrew Godwin
Hrm, I don't know what's happening then, something in your browser is stopping the connection before it even gets to Daphne. You'd have to break out Wireshark or something and look at what the packets on the wire were (and that's tough with TLS). Anyone else have an idea what's happening? Andrew

Jinja templates structure

2017-02-24 Thread Guillermo Gonzalez
Hi guys! I'm involved in a big Django project and I'm trying to propose a way to organize the big amount of jinja templates that we have in our project. The way I'm proposing to oganize them is following a BEM methodology, where all the pages used by a DjangoView being in a *pages* folder,

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

2017-02-24 Thread Kai Fisch
Dear Django Users, I am super new to Django and did the tutorial from the django website so far. I come from Microsoft LightSwitch development, which I used to develop business applications. So the main part of this projects was to show tables with default operations (create, edit, delete,

Re: import error: no module named viewflow.frontend

2017-02-24 Thread Михаил Подгурский
It looks that you are using an outdated version of the viewflow. viewflow.frontend was added to the open-source version since 0.12+ Please consider upgrade to the latest 0.12.2 You can check out the viewflow cookbook helloword sample, and get it running with few commands.

Save Model results

2017-02-24 Thread Nirupama Balu
Hi All, I am currently facing issues to save the results from a clustering using django for a short time without updating my master database. Need some help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Daphne does not handle wss requests

2017-02-24 Thread Giovanni Colapinto
Yep, it works ssh://ubuntu@127.0.0.1:/opt/venv/spywebsockets/bin/python -u /opt/venv/spywebsockets/bin/daphne -e ssl:8003:privateKey=/etc/haproxy/keyring/spy.key:certKey=/etc/haproxy/keyring/spy.cert --proxy-headers -v2 spywebsockets.asgi:channel_layer 2017-02-24 09:05:00,246 INFO