Re: Django channels

2017-02-05 Thread Алексей Кузуб
And workers write me 2017-02-06 10:42:04,709 - DEBUG - worker - Got message on websocket.connect (rep ly websocket.send!FlEitltfgsCC) 2017-02-06 10:42:04,710 - DEBUG - runworker - websocket.connect 2017-02-06 10:42:04,711 - DEBUG - worker - Dispatching message on websocket.conn ect to

Re: Django channels

2017-02-05 Thread Алексей Кузуб
Websocket.connect does not work. Http.request works only. I try to use 'ws_message' with .connect to obtain some mistake. But no mistake was. Daphne writes me 193.150.110.228:58244 - - [06/Feb/2017:10:42:04] "WSCONNECTING /" - - 2017-02-06 10:42:04,709 DEBUGUpgraded connection

Re: Heroku push failed

2017-02-05 Thread Constantine Covtushenko
Hi Jonathan, Sorry for stupid question but you did not specify that exactly. Did you add that module in requirements.txt or requirements.pip? Can you double check that? On Sun, Feb 5, 2017 at 2:54 PM, Jonathan Cheng wrote: > In Win10 > when i run "git push heroku

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-05 Thread Andrew Godwin
You likely need a consumer tied to `websocket.disconnect` that deletes rows from the databases as sockets disconnect. On Sun, Feb 5, 2017 at 6:58 AM, Nikoleta Misheva wrote: > So the problem is with deleting the record and while it is not deleted it > always get's into one

Re: Django channels

2017-02-05 Thread Andrew Godwin
I'm surprised that's working, as you've tied `connect` to a consumer that is designed for `receive` messages - in particular, a `connect` message should not have a `text` key. Are you sure sockets are connecting alright? If they are though, the rest looks like it should work. What versions of

Re: Django channels

2017-02-05 Thread Алексей Кузуб
settings.py redis_host = os.environ.get('REDIS_HOST', 'localhost') CHANNEL_LAYERS = { 'default': { 'BACKEND': 'asgi_redis.RedisChannelLayer', 'CONFIG': { 'hosts': [(redis_host, 6379)], }, 'ROUTING': 'VoteMagic.routing.channel_routing', }, }

Django Generic Bulk API

2017-02-05 Thread medchedli
Hi ! I am new to Django architecture and currently working on project where I have to build generic batch to manage easily multiple stream APIs connection (like Twitter, Facebook, Weather, ... etc ) for a Django 1.7 application. Is there any 3rd party packages that I could build on top of them

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-05 Thread Nikoleta Misheva
So the problem is with deleting the record and while it is not deleted it always get's into one case. I manually deleted the row and it connects to the websocket with no problem, the problem was that instead of 'message' I should put 'text'. So the main problem is with deleting user_topair.

Re: change site_header and site_title and ... dynamically

2017-02-05 Thread ludovic coues
Have you done the tutorial ? I'm thinking of the part 7 which cover this topic if I'm not mistaken https://docs.djangoproject.com/en/1.10/intro/tutorial07/#customize-the-admin-look-and-feel 2017-02-05 5:51 GMT+01:00 : > No, i want change site_header, site_title and other

Re: multiple file upload from image filed in django admin

2017-02-05 Thread ludovic coues
Have you found this piece of the doc ? https://docs.djangoproject.com/en/1.10/topics/http/file-uploads/#uploading-multiple-files 2017-02-05 0:13 GMT+01:00 Amit Pathak : > Hi Guys, > > I have to upload multiple images from single ImageField and i have tried > everything

Re: Problem UnicodeDecodeError when run createsuper

2017-02-05 Thread ludovic coues
What about using a string instead of a byte_array ? Replacing b'Endere\xc3\xa7o de email: ' with 'Endereço de email: ' should do the trick 2017-02-04 22:41 GMT+01:00 Lucas Simon Rodrigues Magalhaes : > Hello everyone, > > I have a problem when run createsuperuser.py command

Re: validation of admin form with inlines

2017-02-05 Thread ludovic coues
I would hide or make the amount field read-only and set it with a pre_save signals. This way, you don't have to worry about it and you get the right value every time instead of getting an error every now and then. 2017-02-04 16:32 GMT+01:00 Roberto Russi : > I need to

Re: Passing two tables in

2017-02-05 Thread ludovic coues
ListView is made to display objects from one type of view. If you want a quick and dirty hack, make one view for nrg, one view for tLoad and one view with two iframe, each displaying one of the two other view. A cleaner solution might need more code. You can look at the ListView code for

Re: change site_header and site_title and ... dynamically

2017-02-05 Thread sjsadeghi . dev
No, i want change site_header, site_title and other options in django admin, in template this is ok. -- 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

Re: issue with django's example version 1.10 in windows 7 ultimate

2017-02-05 Thread Dário Carvalho
Thanks. I didn't noticed that. Em domingo, 5 de fevereiro de 2017 09:53:41 UTC-2, Daniel Roseman escreveu: > > The instructions say to go to http://localhost:8000/polls/ in your > browser. You're going to http://localhost:8000/, but there's nothing > defined for that URL. > -- > DR. -- You

Heroku push failed

2017-02-05 Thread Jonathan Cheng
In Win10 when i run "git push heroku master" the traceback showed: "python manage.py collectstatic" ,the python file ImportError: No module named 'markdown_deux' but i have installed the django-markdown-deux why i met this traceback?

Re: issue with django's example version 1.10 in windows 7 ultimate

2017-02-05 Thread Daniel Roseman
The instructions say to go to http://localhost:8000/polls/ in your browser. You're going to http://localhost:8000/, but there's nothing defined for that URL. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-05 Thread Nikoleta Misheva
I managed to run it somehow but now it says that the socket closed before it was able to connect and from the logs I got ERROR - worker - Error processing message with consumer play.consumers. ws_connect: I am not sending any message from javascript. So I suppose the error is in ws_connect.