how to generate oauth2 credentials after successful google login
i have successfully configured everything to work with google oauth2.
i have used
>django-rest-framework-social-oauth2
the user gets registered if new in DB, the user get logged in if old
everything working fine
i want to generate a oauth2 credentials if the user successful logged in using google oauth
like this
>{
>"access_token": "jCvkP4l7jt88D2O1H1WnNC5wx56knj",
>"expires_in": 36000,
>"token_type": "Bearer",
>"scope": "read write",
>"refresh_token": "u51zWkv056BNMsug8Qw6KCgk5Qtyp"
>}
/r/djangolearning
https://redd.it/88yf73
i have successfully configured everything to work with google oauth2.
i have used
>django-rest-framework-social-oauth2
the user gets registered if new in DB, the user get logged in if old
everything working fine
i want to generate a oauth2 credentials if the user successful logged in using google oauth
like this
>{
>"access_token": "jCvkP4l7jt88D2O1H1WnNC5wx56knj",
>"expires_in": 36000,
>"token_type": "Bearer",
>"scope": "read write",
>"refresh_token": "u51zWkv056BNMsug8Qw6KCgk5Qtyp"
>}
/r/djangolearning
https://redd.it/88yf73
reddit
how to generate oauth2 credentials after... • r/djangolearning
i have successfully configured everything to work with google oauth2. i have used >django-rest-framework-social-oauth2 the user gets...
How do I run a flask app without a virtual environment?
I'm following a flask lesson, and they have me using a virtual environment.
I run the flask app by doing the following:
>(venv) set FLASK_APP=main.py
>(venv) flask run
but trying the same while outside of the venv I get "flask is not recognized as an internal or external command.
What am I missing?
/r/flask
https://redd.it/88v4jm
I'm following a flask lesson, and they have me using a virtual environment.
I run the flask app by doing the following:
>(venv) set FLASK_APP=main.py
>(venv) flask run
but trying the same while outside of the venv I get "flask is not recognized as an internal or external command.
What am I missing?
/r/flask
https://redd.it/88v4jm
reddit
How do I run a flask app without a virtual environment? • r/flask
I'm following a flask lesson, and they have me using a virtual environment. I run the flask app by doing the following: >(venv) set...
how to get access_token of google oauth user?
i have used django-rest-framework-social-oauth2
**added this to templates**
>'social_django.context_processors.backends',
>'social_django.context_processors.login_redirect',
**added backends**
>'social_core.backends.open_id.OpenIdAuth',
>'social_core.backends.google.GoogleOpenId',
>'social_core.backends.google.GoogleOAuth2',
**google keys**
>SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = "***"
>SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = "***"
setup everything on the https://console.developers.google.com
when i access this link http://localhost:8000/auth/login/google-oauth2/ from browser
everything working fine my logged user details are register in DB if new, else login if old. then the social auth auto redirects to this link http://localhost:8000/accounts/profile/# which is empty.
i need the access token of the google user so that i can convert the token to oauth token in this link http://localhost:8000/auth/convert-token with my site client id & secret i created.
after that i can use the converted token to grant access to my API request
/r/django
https://redd.it/88xvk6
i have used django-rest-framework-social-oauth2
**added this to templates**
>'social_django.context_processors.backends',
>'social_django.context_processors.login_redirect',
**added backends**
>'social_core.backends.open_id.OpenIdAuth',
>'social_core.backends.google.GoogleOpenId',
>'social_core.backends.google.GoogleOAuth2',
**google keys**
>SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = "***"
>SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = "***"
setup everything on the https://console.developers.google.com
when i access this link http://localhost:8000/auth/login/google-oauth2/ from browser
everything working fine my logged user details are register in DB if new, else login if old. then the social auth auto redirects to this link http://localhost:8000/accounts/profile/# which is empty.
i need the access token of the google user so that i can convert the token to oauth token in this link http://localhost:8000/auth/convert-token with my site client id & secret i created.
after that i can use the converted token to grant access to my API request
/r/django
https://redd.it/88xvk6
reddit
how to get access_token of google oauth user? • r/django
i have used django-rest-framework-social-oauth2 **added this to...
Django Deployment: Where did the Training Wheels Go?
I have been learning django, and I wanted to "deploy" the resume website I have been building to learn django.
Django documentation is clear and concise, and it never takes more than a little google-fu to figure out how to build my project, but there seems to be FAR LESS information about deploying a project.
How do I get this thing online? Do you have a tutorial that helped you?
/r/django
https://redd.it/88zrjv
I have been learning django, and I wanted to "deploy" the resume website I have been building to learn django.
Django documentation is clear and concise, and it never takes more than a little google-fu to figure out how to build my project, but there seems to be FAR LESS information about deploying a project.
How do I get this thing online? Do you have a tutorial that helped you?
/r/django
https://redd.it/88zrjv
reddit
Django Deployment: Where did the Training Wheels Go? • r/django
I have been learning django, and I wanted to "deploy" the resume website I have been building to learn django. Django documentation is clear and...
django-tokenauth: Library for passwordless authentication, authenticates simply by clicking a link in an email
https://github.com/skorokithakis/django-tokenauth
/r/django
https://redd.it/8913t3
https://github.com/skorokithakis/django-tokenauth
/r/django
https://redd.it/8913t3
GitHub
GitHub - skorokithakis/django-tokenauth: Django authentication backend that uses tokens sent over email.
Django authentication backend that uses tokens sent over email. - skorokithakis/django-tokenauth
[N] TensorflowJS - machine learning in javascript. Tensorflow dev summit 2018
https://youtu.be/YB-kfeNIPCE
/r/MachineLearning
https://redd.it/88wr66
https://youtu.be/YB-kfeNIPCE
/r/MachineLearning
https://redd.it/88wr66
YouTube
Machine Learning in JavaScript (TensorFlow Dev Summit 2018)
Nikhil Thorat and Daniel Smilkov discuss TensorFlow.js, which is TensorFlow’s new machine learning framework for JavaScript developers. It supports building ML models in JavaScript, and training and deploying them in browser for execution using WebGL. They…
Procedural dungeon generation in Python
If you are interested in procedural dungeon generation, [here](http://arcade.academy/examples/index.html#procedural-generation) are few examples written in Python.
* [Recursive division maze-generation](http://arcade.academy/examples/maze_recursive.html)
* [Depth first maze-generation](http://arcade.academy/examples/maze_depth_first.html)
* [Procedural Caves - Cellular Automata](http://arcade.academy/examples/procedural_caves_cellular.html)
* [Procedural Caves - Binary Space Partitioning](http://arcade.academy/examples/procedural_caves_bsp.html)
Visualized using the Arcade library, but the maps are generated with a 2D array first, so it should be easy to visualize them using any system.
/r/Python
https://redd.it/88zans
If you are interested in procedural dungeon generation, [here](http://arcade.academy/examples/index.html#procedural-generation) are few examples written in Python.
* [Recursive division maze-generation](http://arcade.academy/examples/maze_recursive.html)
* [Depth first maze-generation](http://arcade.academy/examples/maze_depth_first.html)
* [Procedural Caves - Cellular Automata](http://arcade.academy/examples/procedural_caves_cellular.html)
* [Procedural Caves - Binary Space Partitioning](http://arcade.academy/examples/procedural_caves_bsp.html)
Visualized using the Arcade library, but the maps are generated with a 2D array first, so it should be easy to visualize them using any system.
/r/Python
https://redd.it/88zans
Which is the fastest version of Python?
https://medium.com/@anthonypjshaw/which-is-the-fastest-version-of-python-2ae7c61a6b2b
/r/Python
https://redd.it/88yy9t
https://medium.com/@anthonypjshaw/which-is-the-fastest-version-of-python-2ae7c61a6b2b
/r/Python
https://redd.it/88yy9t
Hacker Noon
Which is the fastest version of Python?
Of course, “it depends”, but what does it depend on and how can you assess which is the fastest version of Python for your application?
[D] Why do people publish to paywalled publications?
Seems like a way to reach half the audience with little benefit.
/r/MachineLearning
https://redd.it/88zuk5
Seems like a way to reach half the audience with little benefit.
/r/MachineLearning
https://redd.it/88zuk5
reddit
[D] Why do people publish to paywalled... • r/MachineLearning
Seems like a way to reach half the audience with little benefit.
Flask and other frameworks for Python that would be in demand in 2018
https://webcase.studio/blog/best-python-frameworks/?utm_source=catalogs&utm_campaign=python
/r/flask
https://redd.it/88zg4r
https://webcase.studio/blog/best-python-frameworks/?utm_source=catalogs&utm_campaign=python
/r/flask
https://redd.it/88zg4r
webcase.studio
Top 5 - Python Web Development Frameworks in 2018
Python is known for the wide variety of frameworks - but which of them can be considered the best Python frameworks in 2018?
w/code: How does visualization in Plotly differ from Seaborn
https://datascienceplus.com/how-does-visualization-in-plotly-differ-from-seaborn/
/r/Python
https://redd.it/896hwz
https://datascienceplus.com/how-does-visualization-in-plotly-differ-from-seaborn/
/r/Python
https://redd.it/896hwz
Non Model serializer in Django restframework
Hello guys!
I am new to restframework in Django. I can make a model serializer such as for user and then create a ListAPIview for it. Its all fine. But is it possible to create api end point for data that is not a model in database such as doing some data analytics on the model and returning normal python dictionary data?
/r/django
https://redd.it/88zpwt
Hello guys!
I am new to restframework in Django. I can make a model serializer such as for user and then create a ListAPIview for it. Its all fine. But is it possible to create api end point for data that is not a model in database such as doing some data analytics on the model and returning normal python dictionary data?
/r/django
https://redd.it/88zpwt
reddit
Non Model serializer in Django restframework • r/django
Hello guys! I am new to restframework in Django. I can make a model serializer such as for user and then create a ListAPIview for it. Its all...
Checking to see if image field has validation errors
Does anyone happen to know how to check an image field within forms.py to see if it has on or more ValidationErrors on it?
Thanks!
/r/django
https://redd.it/897eiu
Does anyone happen to know how to check an image field within forms.py to see if it has on or more ValidationErrors on it?
Thanks!
/r/django
https://redd.it/897eiu
reddit
Checking to see if image field has validation errors • r/django
Does anyone happen to know how to check an image field within forms.py to see if it has on or more ValidationErrors on it? Thanks!
[ADVICE] Resources to Build Netflix Clone
Yep, that ain't easy. But can someone please share some resources to learn and build one.
Thank you.
/r/django
https://redd.it/88yc0a
Yep, that ain't easy. But can someone please share some resources to learn and build one.
Thank you.
/r/django
https://redd.it/88yc0a
reddit
[ADVICE] Resources to Build Netflix Clone • r/django
Yep, that ain't easy. But can someone please share some resources to learn and build one. Thank you.
Django bugfix releases: 2.0.4 and 1.11.12
https://www.djangoproject.com/weblog/2018/apr/02/bugfix-releases/
/r/django
https://redd.it/8993rv
https://www.djangoproject.com/weblog/2018/apr/02/bugfix-releases/
/r/django
https://redd.it/8993rv
PyPI now supports Github-Flavored Markdown Descriptions
http://blog.jonparrott.com/github-flavored-markdown-on-pypi/
/r/Python
https://redd.it/896a7i
http://blog.jonparrott.com/github-flavored-markdown-on-pypi/
/r/Python
https://redd.it/896a7i
Jon Parrott
Github-Flavored Markdown Descriptions on PyPI
Last month Dustin Ingram happily proclaimed that PyPI supports Markdown Descriptions. This took a lot of work - go check out his wonderful blog post on everything it took to get there. However, we weren't quite done. While PyPI supported CommonMark, it did…
Django noob. Looking to hire someone to help me with questions.
Hi everyone,
As the name suggests, I'm fairly new to django. I'm looking to hire someone who is experienced with django to help me with the odd question. I'm not sure what the pay structure would be (by hour, by question, etc.), but I'm sure that we'd be able to agree on something. Pay would be by Paypal and I can pay 50% upfront for the first few questions until trust is established.
If you're experienced with django and feel like making some side money for answering what might be relatively straight forward questions (to someone who is experienced with django), feel free to send me a private message.
If this isn't the place for this, do you know what site I should go to in order to find help?
Thanks!
/r/django
https://redd.it/899yuu
Hi everyone,
As the name suggests, I'm fairly new to django. I'm looking to hire someone who is experienced with django to help me with the odd question. I'm not sure what the pay structure would be (by hour, by question, etc.), but I'm sure that we'd be able to agree on something. Pay would be by Paypal and I can pay 50% upfront for the first few questions until trust is established.
If you're experienced with django and feel like making some side money for answering what might be relatively straight forward questions (to someone who is experienced with django), feel free to send me a private message.
If this isn't the place for this, do you know what site I should go to in order to find help?
Thanks!
/r/django
https://redd.it/899yuu
reddit
Django noob. Looking to hire someone to help me with... • r/django
Hi everyone, As the name suggests, I'm fairly new to django. I'm looking to hire someone who is experienced with django to help me with the odd...
IPython 6.3 and 5.6 Released
> These are both primarily bugfix releases, but there are a handful of minor
new features.
http://ipython.readthedocs.io/en/stable/whatsnew/version6.html#ipython-6-3
http://ipython.readthedocs.io/en/5.x/whatsnew/version5.html#ipython-5-6
https://mail.python.org/pipermail/ipython-dev/2018-April/016314.html
/r/IPython
https://redd.it/88zqot
> These are both primarily bugfix releases, but there are a handful of minor
new features.
http://ipython.readthedocs.io/en/stable/whatsnew/version6.html#ipython-6-3
http://ipython.readthedocs.io/en/5.x/whatsnew/version5.html#ipython-5-6
https://mail.python.org/pipermail/ipython-dev/2018-April/016314.html
/r/IPython
https://redd.it/88zqot
[P] Data Version Control - Machine Learning Time Travel (Video Explainer)
https://www.youtube.com/watch?v=4h6I9_xeYA4
/r/MachineLearning
https://redd.it/89a2jn
https://www.youtube.com/watch?v=4h6I9_xeYA4
/r/MachineLearning
https://redd.it/89a2jn
YouTube
Data Version Control - Machine Learning Time Travel
Today data science community is still lacking good practices for organizing their projects and effectively collaborating. ML algorithms and methods are no longer simple "tribal knowledge" but are still difficult to manage and reuse.
One of the biggest challenges…
One of the biggest challenges…