Django Channels: Model Binding not sending out message to group

2017-12-13 Thread Zac Kwan
I have nginx, uwsgi and asgi setup correctly. With my javascript frontend, it is connected to base on the worker log that contains the demultiplexer response. However, when I try to create a model (via API, admin or shell) it does not send a message to the worker. In `runserver` all work fine.

Django Channels Model Binding not sending messages

2017-12-13 Thread Zac Kwan
In production, I have setup asgi, wsgi and nginx. My javascript frontend manage connected successfully base on the logs in runworker. However, when a new model is created (DRF API, Admin or Shell), it does not send a message to the group where my frontend is connected. It work perfectly in runs

can't create app in putty

2017-12-13 Thread Виктор Копылец
I buy hosting and create project. Then i decided create app. I write python manage.py startapp webapp and jumps out error : Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/home2/victorko/virtualenv/app/3.4/lib/python3.4/sit

Re: can't create app in putty

2017-12-13 Thread Etienne Robillard
Hi, Perhaps you need to set PYTHONPATH to the location where your app module is located. HTH Etienne Le 2017-12-13 à 01:54, Виктор Копылец a écrit : I buy hosting and create project. Then i decided create app. I write python manage.py startapp webapp and jumps out error :   Traceback (m

Re: can't create app in putty

2017-12-13 Thread Jani Tiainen
Hi, Looks like you have added "app.app" in your installed apps _before_ creating actual app with that name. When trying to form environment for executing management command Django fails to find your app. So either remove that app.app (which seems that it's not even name of the app you want t

Re: [OT] Is Trump planning to break the Internet?

2017-12-13 Thread Chris Seberino
Maybe this will shed some light https://medium.com/@cseberino/toll-equality-b11b07267456 > > -- 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+u

Re: Django Channels: Model Binding not sending out message to group

2017-12-13 Thread Andrew Godwin
Since you double-posted, I will reply to the other thread. On Wed, Dec 13, 2017 at 12:00 AM, Zac Kwan wrote: > I have nginx, uwsgi and asgi setup correctly. With my javascript frontend, > it is connected to base on the worker log that contains the demultiplexer > response. However, when I try to

Re: Django Channels Model Binding not sending messages

2017-12-13 Thread Andrew Godwin
That is odd behaviour - have you tried to see if it's actually the group send, or something like trying to send it twice? Can you post your binding configuration? Andrew On Wed, Dec 13, 2017 at 4:14 AM, Zac Kwan wrote: > In production, I have setup asgi, wsgi and nginx. My javascript frontend >

Help with Django Models

2017-12-13 Thread Udit Vashisht
I have an outside python function which reads a csv from web and fetch certain data in forms of tuple. So that i can use that tuple in my python models for choices in one of the fields. Till now i am running the function independently and copying the returned tuple to my models.py for choices.

Django on windows 10 and tomcat

2017-12-13 Thread Arnap
Am new to django and developing champion windows to be deployed in to cat, but getting error while deploying .war in tomcat6. Error is: cannot load 'application's, no module named mysite Where mysite is my application name, kindly help me -- You received this message because you are subscribed

Re: Help with Django Models

2017-12-13 Thread Mike Dewhirst
On 14/12/2017 3:15 AM, Udit Vashisht wrote: I have an outside python function which reads a csv from web and fetch certain data in forms of tuple. So that i can use that tuple in my python models for choices in one of the fields. Till now i am running the function independently and copying the

Re: Help with Django Models

2017-12-13 Thread Mike Dewhirst
On 14/12/2017 11:14 AM, Udit Vashisht wrote: Thanks for the reply. I am new to python and django. Will have to google a lot to understand your solution :-) Look at models.ForeignKey ... https://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey When you add a foreign key field to a t

Re: Django Channels Model Binding not sending messages

2017-12-13 Thread Zac Kwan
I have a console.log in my javascript that verified is the newly created Feed that got sent. This is my binding, consumers and routing class: #bindings.py class FeedBinding(WebsocketBinding): model = Feed stream = "feed" fields = ["__all__"] @classmethod def group_names(cls,

Re: Django 1.11

2017-12-13 Thread minh quang
Thank you! On Sunday, December 10, 2017 at 10:58:44 AM UTC+7, minh quang wrote: > > Hi all, i am begining develop web django. If i buid django web app to > manage studen't score result then will i creat what model is? > ,thanks all? > -- You received this message because you are subscribed to t

Re: Django field model for HTML parser?

2017-12-13 Thread drone4four
Hi fellow Djangoistas: I'm back. Thank you Atonis for your help. I suppose I can leave the WYSIWYG editor static files for later when I have alittle more experience. For now though: how can I enable HTML markup to parse like it should? The box where users on my Django website make a blog

Re: Django on windows 10 and tomcat

2017-12-13 Thread Jani Tiainen
Hi. Django is Pyhton webframework so deploying to Tomcat which is Java webapp runner mighy not work at all. 14.12.2017 0.31 "Arnap" kirjoitti: > Am new to django and developing champion windows to be deployed in to cat, > but getting error while deploying .war in tomcat6. Error is: > cannot loa

Scrapy

2017-12-13 Thread Rafael Mauricio Builes Marin
Hi, somebody know something about scrapy I need help. -- El contenido de este mensaje y sus anexos son únicamente para el uso del destinatario y pueden contener información clasificada o reservada. Si usted no es el destinatario intencional, absténgase de cualquier uso, difusión, distribució

Re: Django field model for HTML parser?

2017-12-13 Thread Mike Dewhirst
On 14/12/2017 4:00 PM, drone4four wrote: Hi fellow Djangoistas: I'm back. Thank you Atonis for your help.  I suppose I can leave the WYSIWYG editor static files for later when I have alittle more experience.  For now though: how can I enable HTML markup to parse like it should?  The box wher

Re: Scrapy

2017-12-13 Thread Vineet Kothari
refer through tuitorialspoint On Thu, Dec 14, 2017 at 10:35 AM, Rafael Mauricio Builes Marin < bui...@utp.edu.co> wrote: > Hi, somebody know something about scrapy I need help. > > > El contenido de este mensaje y sus anexos son únicamente para el uso del > destinatario y pueden contener informac