Re: Django with Channels 2.1.1 Error During WebSocket handshake 404

2018-11-16 Thread Andrew Godwin
You cannot use gunicorn to run WebSockets or other async code - you need an ASGI server, like Daphne or uvicorn. Switch to one of those and it should start working. Andrew On Fri, Nov 16, 2018 at 8:11 PM Robert Fox wrote: > I am working on a project using Django and Channels 2.1.1. Everything i

How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-16 Thread Joel Mathew
I have a page where several buttons process different functions like sending a user sms (via API), sends an file by email, or downloads a PDF file. Button actions dont use forms, but uses ajax requests via javascript. I used to create a pdf file using javascript (jspdf), but have written code whic

Django with Channels 2.1.1 Error During WebSocket handshake 404

2018-11-16 Thread Robert Fox
I am working on a project using Django and Channels 2.1.1. Everything is working splendidly on my home PC but when I deploy to AWS I get the error: 'WebSocket connection to 'ws://IP/ws/lobby/' failed: Error during WebSocket handshake: Unexpected response code: 404 ' which originates from the lin

Fascinating Problem

2018-11-16 Thread Matthew Pava
I have come across an interesting issue with my error handling. Whenever I go to a URL that throws an exception (I have one for testing) as one of the ADMINS when DEBUG is False, I get the 500 error, and the email from the server indicating it. When a different user navigates to the URL, the d

Install PostgreSQL in Ubuntu Server 18.04 Bionic Beaver

2018-11-16 Thread Ing.Daniel Bojorge
Here I let a video tutorial where I explain how install PostgreSQL in Ubuntu Server. The Video has english subtitle https://www.youtube.com/embed/ENrtKDNizv8 Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge

Re: I can't start django

2018-11-16 Thread Ansh Srivastava
I think you forgot to mention the following: pip install django==2.1.3 [image: Mailtrack] Sender notified by Mailtrack

I can't start django

2018-11-16 Thread Akash Purandare
Can you show the output of pip freeze in your virtual environment? -- 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

I can't start django

2018-11-16 Thread epic christ
(myvenv) epiczed00s-MacBook-Air:mysite epiczed00$ python3 manage.py runserver Traceback (most recent call last): File "manage.py", line 8, in from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' The above exception was the direc

RE: Migrations - moving model between apps

2018-11-16 Thread Matthew Pava
Hi Simon, Thank you so very much for your assistance. It was a very simple model, so it had no foreign keys, and I’m relieved that I won’t have to do some manual database operations to get this working. It has migrated successfully! Thank you, Matthew From: django-users@googlegroups.com [mailto:d

Re: Render works but url does not change

2018-11-16 Thread Jason
You're rendering templates and returning the response, but if you want the URL to change, you need to do a redirect. Right now, you're telling django for button submits, render the portal template and return the html. There's nothing in it about redirecting to another URL -- You received thi