Re: Bug ? | Django 1.9.11 | ManyToManyField with help_text

2016-11-11 Thread Artem Bernatskyy
Thanks On Friday, November 11, 2016 at 4:05:32 PM UTC+2, Artem Bernatskyy wrote: > > If i add ManyToManyField through intermediary table with "help text" and > run makemigrations > there will be created 'dummy migration' which doesn't have any sense > and when i call lt repeatingly for example >

Re: Bug ? | Django 1.9.11 | ManyToManyField with help_text

2016-11-11 Thread Tim Graham
There's a known bug that help_text=_("") triggers infinite migrations, perhaps you could add your use case to the ticket. https://code.djangoproject.com/ticket/24964 On Friday, November 11, 2016 at 9:05:32 AM UTC-5, Artem Bernatskyy wrote: > > If i add ManyToManyField through intermediary table

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-11 Thread Andrew Godwin
That's not the problem - if an incoming connection is a WebSocket it does not run through the URL resolver (as you are seeing there) but instead gets upgraded on the wire and dispatched differently. A quick read up makes it seem like the Apache proxy module does not understand WebSocket (it's a bi

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-11 Thread Adam Teale
I came across a post that suggested running Daphne like this: daphne multichat.asgi:channel_layer --port 8000 -v 2 The updated error: 2016-11-11 15:43:14,453 DEBUGHTTP GET request for http.response!KwJtQDgmoifR 2016-11-11 15:43:14,478 DEBUGHTTP 404 response started for http.resp

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-11 Thread Adam Teale
I think my grief may be coming from connecting over https/SSL. When I run the worker with the -v 2 option it shows: 2016-11-11 14:55:43,446 - DEBUG - worker - Got message on http.request (reply http.response!EKDQPeJsDRwU) 2016-11-11 14:55:43,447 - DEBUG - runworker - http.request 2016-11-11 1

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-11 Thread Adam Teale
Also getting this error in the browser log: WebSocket connection to 'ws://alfred.local/chat/stream/' failed: Unexpected response code: 503 On Friday, 11 November 2016 11:24:25 UTC-3, Adam Teale wrote: > > Hi Andrew, > > I think I'm starting to get somewhere, I have edited one of the apache

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-11 Thread Adam Teale
Hi Andrew, I think I'm starting to get somewhere, I have edited one of the apache virtualhost conf files to include these lines: ProxyPass / http://127.0.0.1:8000/ ProxyPassReverse / http://127.0.0.1:8000/ Now when I access the server I am getting some feedback in the steel running the

Bug ? | Django 1.9.11 | ManyToManyField with help_text

2016-11-11 Thread Artem Bernatskyy
If i add ManyToManyField through intermediary table with "help text" and run makemigrations there will be created 'dummy migration' which doesn't have any sense and when i call lt repeatingly for example './manage,py makemigrations && ./manage,py migrate' './manage,py makemigrations && ./manage

Loading and editing Microsoft Word files with Django admin

2016-11-11 Thread Jorge Arévalo
Hello, I have a bunch of Microsoft Word files, and I want to allow the users of my tool (a Django 1.8 based custom-made CRM, basically) to edit those files with Django admin, using any rich-text editor. The most common use case: they import a Word template in the tool, the document content is

Re: Admin - saveasnew to another database

2016-11-11 Thread Mike Dewhirst
To finish this thread, I have decided to abandon the attempt. My solution is to tell the users to avoid doing real work on the staging server. It exists only to check out new features. I feel better now. Thanks Melvyn and Tim Mike On 10/11/2016 11:08 AM, Mike Dewhirst wrote: On 10/11/2016 1

Re: python3 manage.py migrate got an error

2016-11-11 Thread GMail
Are you, by any chance, trying to put string into DateTime field? > On 11 Nov 2016, at 15:45, Tim Graham wrote: > > The only thing that comes to mind is that mysql.connector may not support the > latest version of Django. > > Try mysqlclient if that's an option for you. > https://docs.djangop

Re: Show the output of python variable in django template

2016-11-11 Thread Marlysson Silva
How are your code, view..? Em sexta-feira, 11 de novembro de 2016 09:07:26 UTC-3, Dattatreya Sadhu escreveu: > > I am building a chat bot application. > i have created a form in my html view and send a post request and in > python i am able to capture it > > but i am not able to send my result i

Re: show output of python variable

2016-11-11 Thread Marlysson Silva
Your view return to replate via context the variable? try so: My value is : {{ my_variable_view }} Em sexta-feira, 11 de novembro de 2016 09:07:26 UTC-3, Dattatreya Sadhu escreveu: > > how to show output of python variable in django template > -- You received this message because you are subs

Re: python3 manage.py migrate got an error

2016-11-11 Thread Tim Graham
The only thing that comes to mind is that mysql.connector may not support the latest version of Django. Try mysqlclient if that's an option for you. https://docs.djangoproject.com/en/stable/ref/databases/#mysql-db-api-drivers On Friday, November 11, 2016 at 7:07:26 AM UTC-5, xiupei gao wrote: >

show output of python variable

2016-11-11 Thread Dattatreya Sadhu
how to show output of python variable in django template -- 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+unsubscr...@googlegroups.com. To post to th

python3 manage.py migrate got an error

2016-11-11 Thread xiupei gao
i just started a new project and changed the default database engine by DATABASES = { 'default': { 'ENGINE': 'mysql.connector.django', 'NAME': 'django', 'USER': 'root', 'PASSWORD': 'mypassword', 'HOST': '127.0.0.1', } } then i ran python3 manage.py

Show the output of python variable in django template

2016-11-11 Thread Dattatreya Sadhu
I am building a chat bot application. i have created a form in my html view and send a post request and in python i am able to capture it but i am not able to send my result in python in django template -- You received this message because you are subscribed to the Google Groups "Django user