maliesa96 / apollo Goto Github PK
View Code? Open in Web Editor NEWReal-time polling application built using Django Channels and Redis.
Real-time polling application built using Django Channels and Redis.
Exception ignored in thread started by: <function check_errors..wrapper at 0x0000020AAFA3EF70>
This happens after installing packages from requirements.txt, and then running the project at 0.0.0.0:8001
The command- daphne -p 8001 -b 0.0.0.0 apollo.asgi:application has similar exception
I am trying to replicate the poll app by carrying out all the steps (as I could delineate from the objects included).
However, I keep getting the following error:
Page not found (404)
Request Method: GET http://127.0.0.1:8000/mno1vv/admin
The first time the app is used, I get to see the input "Type a question or #RoomId". If I am getting this right, the user is supposed to enter a text in the input field and then carry on selecting the options as offered (selecting the Poll Type, "Private or Anonymous") and finally clicking on the button "Start Poll".
However, on clicking the Start Poll button I am being taken to a page as shown in the image in README.md page. But with the exception that no user information is seen in the page that I am getting.
On trying to restart the app, instead of the Home page (the one with input box "Type a question or #RoomId"), I am getting the error as described at the beginning.
In addition, I am not sure as to how the users are to be added for the poll as also how does a user take part in the actual polling?
I can confirm that the Redis server is running on port 6379. I have started the Daphne server on another terminal on port 8001 as explained (reproduced below):
This starts the redis server. We then use daphne to listen for both HTTP and Websocket requests on 0.0.0.0:8001.
daphne -p 8001 -b 0.0.0.0 apollo.asgi:application
My question is:
How do I actually use the Poll app? Why do I get the "Page not found (404)" error on re-starting the app ? (Incidentally, commenting out the line:
return redirect('/'+room.roomid+'/admin')
in function home in views.py eliminates the 404 error, though I don't think that is the reason for the error.).
In addition, I am getting the following message when Daphne is started:
HTTP/2 support not enabled (install the http2 and tls Twisted extras)
Will this cause a problem?
Following are the technical details:
OS: macOs Sierra
Python 3.6.4
Django 2.2.19
Browser Chrome (latest update)
Channels 3.0.3
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.