[AF] Update web site dynamically with Python script output
Hi,
I am pretty new to Flask and just learning the basics. How can I update my web site dynamically with the output from Python script?
I am fetching data from my temperature sensor which works well but I would like to bring that data to my simple web site. That web site should automatically update newest readings without reloading the whole page.
/r/flask
https://redd.it/7optfy
Hi,
I am pretty new to Flask and just learning the basics. How can I update my web site dynamically with the output from Python script?
I am fetching data from my temperature sensor which works well but I would like to bring that data to my simple web site. That web site should automatically update newest readings without reloading the whole page.
/r/flask
https://redd.it/7optfy
reddit
[AF] Update web site dynamically with Python script output • r/flask
Hi, I am pretty new to Flask and just learning the basics. How can I update my web site dynamically with the output from Python script? I am...
Flask-OAuthlib custom response
Hi. I'm implementing my own OAuth2 server using Flask-OAuthlib and password grant type. Everything is working fine, I just have one small issue that I can't figure out. I would like to return some custom login errors like 'user not active'. Is there a way to do this? As far as I can see the usergetter method only returns user object or None.
/r/flask
https://redd.it/7nq6e2
Hi. I'm implementing my own OAuth2 server using Flask-OAuthlib and password grant type. Everything is working fine, I just have one small issue that I can't figure out. I would like to return some custom login errors like 'user not active'. Is there a way to do this? As far as I can see the usergetter method only returns user object or None.
/r/flask
https://redd.it/7nq6e2
reddit
Flask-OAuthlib custom response • r/flask
Hi. I'm implementing my own OAuth2 server using Flask-OAuthlib and password grant type. Everything is working fine, I just have one small issue...
Adding Ability to Log In to Site With Facebook
I want to add the ability for users to log into a website using Facebook to a project that I'm working on.
I found a bunch of references to `social-auth-app-django`, but the last commit to the Github repository was almost three years ago. Is there a more modern/up to date alternative, or is that still the best option?
/r/django
https://redd.it/7opcxd
I want to add the ability for users to log into a website using Facebook to a project that I'm working on.
I found a bunch of references to `social-auth-app-django`, but the last commit to the Github repository was almost three years ago. Is there a more modern/up to date alternative, or is that still the best option?
/r/django
https://redd.it/7opcxd
reddit
Adding Ability to Log In to Site With Facebook • r/django
I want to add the ability for users to log into a website using Facebook to a project that I'm working on. I found a bunch of references to...
Any recommended tutorials or documentation on building unit tests with a MongoDB and Flask?
/r/flask
https://redd.it/7nq4dx
/r/flask
https://redd.it/7nq4dx
reddit
Any recommended tutorials or documentation on building... • r/flask
1 points and 1 comments so far on reddit
How do you pass a queryset to a JS variable? I want to take a queryset and pass it to js as a simple json array. Can't find any help but surely this is obvious!
/r/django
https://redd.it/7or3dx
/r/django
https://redd.it/7or3dx
reddit
How do you pass a queryset to a JS variable? I want to... • r/django
0 points and 5 comments so far on reddit
Interactive branching?
I was reading about [inkle/ink](https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md), a scripting language for interactive fiction, and I thought some interactive branching functionality would be a great feature for Jupyter notebooks. E.g. imagine a tutorial that is not just read front-to-back but which has quizzes that depending on your answer leads you to different sections. This could let advanced people skip over whole sections they know and beginners can take deep dives into topics that they don't understand as well yet. And it would allow for some "gamification" of tutorial notebooks.
Do plugins like that exist for Jupyter, by any chance?
/r/IPython
https://redd.it/7oqfco
I was reading about [inkle/ink](https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md), a scripting language for interactive fiction, and I thought some interactive branching functionality would be a great feature for Jupyter notebooks. E.g. imagine a tutorial that is not just read front-to-back but which has quizzes that depending on your answer leads you to different sections. This could let advanced people skip over whole sections they know and beginners can take deep dives into topics that they don't understand as well yet. And it would allow for some "gamification" of tutorial notebooks.
Do plugins like that exist for Jupyter, by any chance?
/r/IPython
https://redd.it/7oqfco
GitHub
ink/Documentation/WritingWithInk.md at master · inkle/ink
inkle's open source scripting language for writing interactive narrative. - inkle/ink
Simple notification system on Django web client?
I have a apiview which takes some info from a request object, starts a new thread to run a script (which can take a while to run) and then returns a 202 Response. Is there a library that I can leverage to send a popup notification to the client when the script has finished running?
/r/django
https://redd.it/7os5f7
I have a apiview which takes some info from a request object, starts a new thread to run a script (which can take a while to run) and then returns a 202 Response. Is there a library that I can leverage to send a popup notification to the client when the script has finished running?
/r/django
https://redd.it/7os5f7
reddit
Simple notification system on Django web client? • r/django
I have a apiview which takes some info from a request object, starts a new thread to run a script (which can take a while to run) and then returns...
mnt local notebook directories to a jupyter docker container
I have a docker container for jupyter notebooks https://github.com/zos-spark/interactive-insights-workbench/blob/master/notebook/Dockerfile
I want to mount a local dir with all notebooks into the dockerfile. How can I achieve it?
/r/IPython
https://redd.it/7otntr
I have a docker container for jupyter notebooks https://github.com/zos-spark/interactive-insights-workbench/blob/master/notebook/Dockerfile
I want to mount a local dir with all notebooks into the dockerfile. How can I achieve it?
/r/IPython
https://redd.it/7otntr
GitHub
zos-spark/interactive-insights-workbench
interactive-insights-workbench - A Jupyter Workbench that includes Python, R and dynamic dashboard capabilities.
I wrote a little Python program to approximate the 3D trajectory of a satellite orbiting the earth
http://milesbarnhart.com/portfolio/python/python-3d-satellite-orbital-trajectory-simulation/
/r/Python
https://redd.it/7orhpd
http://milesbarnhart.com/portfolio/python/python-3d-satellite-orbital-trajectory-simulation/
/r/Python
https://redd.it/7orhpd
reddit
I wrote a little Python program to approximate the 3D... • r/Python
109 points and 4 comments so far on reddit
I've been creating a Python web framework for the past several months and it's really awesome.
I'd like to share a new python web framework I've been working on called Masonite. Those of you who have used Laravel before, it is very similiar in architecture to Laravel.
I've had a lot of fun writing and developing in it and learned A LOT. Those of you that are interested in creating a new Python web framework, PR's are wecome. Installation is nice and easy. (YMMV)
[GitHub Repo](https://github.com/josephmancuso/masonite)
[Documentation](http://masonite.docsforcode.com)
I was very pleased with Django but after using a framework like Laravel, I've noticed so many flaws with Django and want to create a framework that is much more simple, developer friendly and easier to use than Django.
Feedback and contributions are appreciated!
/r/Python
https://redd.it/7ou24s
I'd like to share a new python web framework I've been working on called Masonite. Those of you who have used Laravel before, it is very similiar in architecture to Laravel.
I've had a lot of fun writing and developing in it and learned A LOT. Those of you that are interested in creating a new Python web framework, PR's are wecome. Installation is nice and easy. (YMMV)
[GitHub Repo](https://github.com/josephmancuso/masonite)
[Documentation](http://masonite.docsforcode.com)
I was very pleased with Django but after using a framework like Laravel, I've noticed so many flaws with Django and want to create a framework that is much more simple, developer friendly and easier to use than Django.
Feedback and contributions are appreciated!
/r/Python
https://redd.it/7ou24s
GitHub
josephmancuso/masonite
masonite - The Python 3 Framework For Web Crafters
Demystifying Two Factor Auth (implemented in Python)
https://rcoh.me/posts/two-factor-auth/
/r/Python
https://redd.it/7ov5zf
https://rcoh.me/posts/two-factor-auth/
/r/Python
https://redd.it/7ov5zf
rcoh.me
Demystifying Two Factor Auth
I always wondered how Google Authenticator style 2-factor codes worked. The process of going from QR code to rotating 6-digit pin seemed a bit magical. A few days ago, my curiosity found itself coupled with some free time. Here’s what I found:
What’s in the…
What’s in the…
Should I move from 1.11 to 2 before deploying on a server ?
I have almost finished a Django project I have been developing. I have started on 1.11 but now I see that there is Django 2.
I am wondering if I should move to Django 2 before putting my project on a server.
/r/django
https://redd.it/7ou5sm
I have almost finished a Django project I have been developing. I have started on 1.11 but now I see that there is Django 2.
I am wondering if I should move to Django 2 before putting my project on a server.
/r/django
https://redd.it/7ou5sm
reddit
Should I move from 1.11 to 2 before deploying on a server ? • r/django
I have almost finished a Django project I have been developing. I have started on 1.11 but now I see that there is Django 2. I am wondering if I...
How do I use Django to execute PostGIS query to get polygons within four points?
https://gis.stackexchange.com/questions/267147/how-do-i-use-django-to-execute-postgis-query-to-get-polygons-within-four-points
/r/django
https://redd.it/7omym5
https://gis.stackexchange.com/questions/267147/how-do-i-use-django-to-execute-postgis-query-to-get-polygons-within-four-points
/r/django
https://redd.it/7omym5
Geographic Information Systems Stack Exchange
How do I use Django to execute PostGIS query to get polygons within four points?
Here's a sample PostGIS query I use to get geometries within four points:
SELECT *
FROM myTable
WHERE ST_MakeEnvelope(-97.82381347656252, 30.250444940663296, -97.65901855468752, 30.29595835209862,...
SELECT *
FROM myTable
WHERE ST_MakeEnvelope(-97.82381347656252, 30.250444940663296, -97.65901855468752, 30.29595835209862,...
Making a currency/point system for a site?
Hey my friends and I are often betting on stuff (like who will win a football game or who will get drunk first) so I thought I would make something like a 'betting' app for us to bet like 2 points/coin on something. Does anyone know how to make currency or point systems and or a betting system?
/r/django
https://redd.it/7ojing
Hey my friends and I are often betting on stuff (like who will win a football game or who will get drunk first) so I thought I would make something like a 'betting' app for us to bet like 2 points/coin on something. Does anyone know how to make currency or point systems and or a betting system?
/r/django
https://redd.it/7ojing
reddit
Making a currency/point system for a site? • r/django
Hey my friends and I are often betting on stuff (like who will win a football game or who will get drunk first) so I thought I would make...
Why is git push heroku master not working in this situation?
Im tryin to push django project i have on git.
I created runtime.txt file in root direcotry with the text 'python-3.4.0'
I also created Pocfile with the text 'web: gunicorn mb_project.wsgi --log-file -'
I have no idea why is this not working, checked a lot of threads on quora and stackoverflow... MAybe heroku doesnt like python 3.4.0 ? But i changed it to 3.6.3 and i still got the same error
/r/django
https://redd.it/7okffi
Im tryin to push django project i have on git.
I created runtime.txt file in root direcotry with the text 'python-3.4.0'
I also created Pocfile with the text 'web: gunicorn mb_project.wsgi --log-file -'
I have no idea why is this not working, checked a lot of threads on quora and stackoverflow... MAybe heroku doesnt like python 3.4.0 ? But i changed it to 3.6.3 and i still got the same error
/r/django
https://redd.it/7okffi
reddit
Why is git push heroku master not working in this... • r/django
Im tryin to push django project i have on git. I created runtime.txt file in root direcotry with the text 'python-3.4.0' I also created Pocfile...
Bonobo: Lightweight ETL Toolkit for Python 3 (Interview)
https://www.podcastinit.com/bonobo-with-romain-dorgueil-episode-143/
/r/Python
https://redd.it/7oxn08
https://www.podcastinit.com/bonobo-with-romain-dorgueil-episode-143/
/r/Python
https://redd.it/7oxn08
Podcast.__init__('Python')
Bonobo: Lightweight ETL Toolkit for Python 3 with Romain Dorgueil – Episode 143
A majority of the work that we do as programmers involves data manipulation in some manner. This can range from large scale collection, aggregation, and statistical analysis across distrbuted systems, or it can be as simple as making a graph in a spreadsheet.…
Seeking advice on putting together the model structure for a 1-to-1 chat using Channels.
I'm struggling with implementing the data structure for a chat system. I've looked through most of the popular tutorials but I'm still having trouble applying it to my own use-case.
I am looking to allow a chat system similar in structure(not UI) to facebook or AIM from back in the day--one on one messaging, with message persistence, and a user able to have many chats.
The tutorials I've looked through have conflicting suggestions.
Given that I already have a model called `Pair` which has two `ForeignKeys`, named `requester` and `accepter`, each pointing to a `User`, how might I structure the messages or rooms around this `Pair`? (structuring around `Pair` isn't mandatory, I just thought it may be convenient)
What I've brainstormed:
1) Have a single `Room` model with a FK to the `Pair` model, and two TextFields for the messages: `to_accepter` & `from_accepter` to denote the messages belonging to the appropriate user.
2) Have a `Room` model and a separate `Message` model. The message will have an FK to the room, and have fields: `sent_from`(message sender), a timestamp(to eventually organize the list of displayed messages, and the TextField.
Is there an ideal way to go about this? I'm open to any suggestion.
Thanks in advance.
/r/django
https://redd.it/7ob65e
I'm struggling with implementing the data structure for a chat system. I've looked through most of the popular tutorials but I'm still having trouble applying it to my own use-case.
I am looking to allow a chat system similar in structure(not UI) to facebook or AIM from back in the day--one on one messaging, with message persistence, and a user able to have many chats.
The tutorials I've looked through have conflicting suggestions.
Given that I already have a model called `Pair` which has two `ForeignKeys`, named `requester` and `accepter`, each pointing to a `User`, how might I structure the messages or rooms around this `Pair`? (structuring around `Pair` isn't mandatory, I just thought it may be convenient)
What I've brainstormed:
1) Have a single `Room` model with a FK to the `Pair` model, and two TextFields for the messages: `to_accepter` & `from_accepter` to denote the messages belonging to the appropriate user.
2) Have a `Room` model and a separate `Message` model. The message will have an FK to the room, and have fields: `sent_from`(message sender), a timestamp(to eventually organize the list of displayed messages, and the TextField.
Is there an ideal way to go about this? I'm open to any suggestion.
Thanks in advance.
/r/django
https://redd.it/7ob65e
reddit
Seeking advice on putting together the model structure... • r/django
I'm struggling with implementing the data structure for a chat system. I've looked through most of the popular tutorials but I'm still having...
Issues on the development of a Flask API service that loop through data sources, cache the data, and give rapid feedback on a query.
https://stackoverflow.com/questions/48154467/python-flask-api-service-loop-trough-api-data-sources-cache-and-give-rapid
/r/flask
https://redd.it/7ozxts
https://stackoverflow.com/questions/48154467/python-flask-api-service-loop-trough-api-data-sources-cache-and-give-rapid
/r/flask
https://redd.it/7ozxts
Stackoverflow
Python - Flask API service - Loop trough API data sources, cache, and give rapid feedback on call
I'm trying to develop an API service that after collecting data continuously from different sources, elaborate that data, and keep that information ready from being requested from another service. ...