How to make search fields dynamic in Django REST Framework
https://medium.com/@raaj.akshar/how-to-make-search-fields-dynamic-in-django-rest-framework-72922bfa1543
/r/django
https://redd.it/ceeqtr
https://medium.com/@raaj.akshar/how-to-make-search-fields-dynamic-in-django-rest-framework-72922bfa1543
/r/django
https://redd.it/ceeqtr
Medium
How To Make Search Fields Dynamic in the Django REST Framework
Set search fields using the query parameter
I feel so valued
Today my coworker asked me to help him with something. Basically, we had a bunch of gift cards that were supposed to be for employee giveaways, but they were all about to expire. We had about 100 of them. These gift cards were only redeemable as a guest user so we couldn't just log in to the website and load them all into one user. We had to perform a separate order for every single gift card. The worst part is none of the form data was saving in my browser either, so I had to fill in the shipping information manually. The whole order process took 5 minutes per card. If done manually, that is..
​
I've never used selenium before but I figured this was literally the perfect task, since the orders were all the same save for the gift card codes. I told my coworker to just help me type out all the codes into a text file and told him I would take it from there. 20 minutes later I had written up a selenium script that ran through the list of codes and performed the orders. I let
/r/Python
https://redd.it/cemtlr
Today my coworker asked me to help him with something. Basically, we had a bunch of gift cards that were supposed to be for employee giveaways, but they were all about to expire. We had about 100 of them. These gift cards were only redeemable as a guest user so we couldn't just log in to the website and load them all into one user. We had to perform a separate order for every single gift card. The worst part is none of the form data was saving in my browser either, so I had to fill in the shipping information manually. The whole order process took 5 minutes per card. If done manually, that is..
​
I've never used selenium before but I figured this was literally the perfect task, since the orders were all the same save for the gift card codes. I told my coworker to just help me type out all the codes into a text file and told him I would take it from there. 20 minutes later I had written up a selenium script that ran through the list of codes and performed the orders. I let
/r/Python
https://redd.it/cemtlr
reddit
r/Python - I feel so valued
0 votes and 0 comments so far on Reddit
find a new home for all repos (all repositories under the 'kennethreitz' org on github are effectively 'up for grabs')
https://github.com/not-kennethreitz/team/issues/21
/r/Python
https://redd.it/cehy33
https://github.com/not-kennethreitz/team/issues/21
/r/Python
https://redd.it/cehy33
GitHub
find a new home for all repos · Issue #21 · not-kennethreitz/team
In the spirit of transparency, I'd like to (publicly) find a new home for my repositories. I want to be able to still make contributions to them, but no longer be considered the "owner&quo...
Is the Kite AI Autocomplete for Python safe to use ? The privacy of my code is endangered ?
Hello ! I recently have a look back to a tool that I used in the past, one year ago. It was a commercial software, but had some free usage too.
If there is someone that can respond to my questions please do.
Some other questions that I have:
What made Kite to make its product free ?
/r/Python
https://redd.it/cepj00
Hello ! I recently have a look back to a tool that I used in the past, one year ago. It was a commercial software, but had some free usage too.
If there is someone that can respond to my questions please do.
Some other questions that I have:
What made Kite to make its product free ?
/r/Python
https://redd.it/cepj00
reddit
r/Python - Is the Kite AI Autocomplete for Python safe to use ? The privacy of my code is endangered ?
0 votes and 2 comments so far on Reddit
Struggling to find and answer online, where is the best place to execute code when a model is created in Django Rest Framework?
I need to make some requests to third party APIs when an object is created via a POST request. There's so many different places I can override, whether it's in the model itself or in the DRF serializer, where is the best place to make these API calls? They must succeed or else I don't want to save this object in the database.
Hopefully this is clear.
/r/django
https://redd.it/cep279
I need to make some requests to third party APIs when an object is created via a POST request. There's so many different places I can override, whether it's in the model itself or in the DRF serializer, where is the best place to make these API calls? They must succeed or else I don't want to save this object in the database.
Hopefully this is clear.
/r/django
https://redd.it/cep279
reddit
r/django - Struggling to find and answer online, where is the best place to execute code when a model is created in Django Rest…
4 votes and 14 comments so far on Reddit
AMA: We are Noam Brown and Tuomas Sandholm, creators of the Carnegie Mellon / Facebook multiplayer poker bot Pluribus. We're also joined by a few of the pros Pluribus played against. Ask us anything!
Hi all! We are [Noam Brown](http://www.cs.cmu.edu/~noamb/) and Professor [Tuomas Sandholm](http://www.cs.cmu.edu/~sandholm/). We recently developed the poker AI [Pluribus](https://science.sciencemag.org/content/early/2019/07/10/science.aay2400), which has proven capable of defeating elite human professionals in six-player no-limit Texas hold'em poker, the most widely-played poker format in the world. Poker was a long-standing challenge problem for AI due to the importance of hidden information, and Pluribus is the first AI breakthrough on a major benchmark game that has more than two players or two teams. Pluribus was trained using the equivalent of less than $150 worth of compute and runs in real time on 2 CPUs. You can read our blog post on this result [here](https://ai.facebook.com/blog/pluribus-first-ai-to-beat-pros-in-6-player-poker/).
We are happy to answer your questions about Pluribus, the experiment, AI, imperfect-information games, Carnegie Mellon, Facebook AI Research, or any other questions you might have! A few of the pros Pluribus played against may also jump in if anyone has questions about what it's like playing against the bot, participating in the experiment, or playing professional poker.
We are opening this thread to questions now and will be here starting at 10AM ET on Friday, July 19th to answer them.
/r/MachineLearning
https://redd.it/ceece3
Hi all! We are [Noam Brown](http://www.cs.cmu.edu/~noamb/) and Professor [Tuomas Sandholm](http://www.cs.cmu.edu/~sandholm/). We recently developed the poker AI [Pluribus](https://science.sciencemag.org/content/early/2019/07/10/science.aay2400), which has proven capable of defeating elite human professionals in six-player no-limit Texas hold'em poker, the most widely-played poker format in the world. Poker was a long-standing challenge problem for AI due to the importance of hidden information, and Pluribus is the first AI breakthrough on a major benchmark game that has more than two players or two teams. Pluribus was trained using the equivalent of less than $150 worth of compute and runs in real time on 2 CPUs. You can read our blog post on this result [here](https://ai.facebook.com/blog/pluribus-first-ai-to-beat-pros-in-6-player-poker/).
We are happy to answer your questions about Pluribus, the experiment, AI, imperfect-information games, Carnegie Mellon, Facebook AI Research, or any other questions you might have! A few of the pros Pluribus played against may also jump in if anyone has questions about what it's like playing against the bot, participating in the experiment, or playing professional poker.
We are opening this thread to questions now and will be here starting at 10AM ET on Friday, July 19th to answer them.
/r/MachineLearning
https://redd.it/ceece3
www.cs.cmu.edu
Noam Brown
Noam Brown's homepage
CS on Python3 by the Moscow Institute of Physics and Technology
Unsure if this will be helpful for someone, but you can use google translate and learn a bit and interesting stuff from the (Moscow Institute of Physics and Technology) [http://judge.mipt.ru/mipt\_cs\_on\_python3/](http://judge.mipt.ru/mipt_cs_on_python3/)
Seems they have a lot of information on this site as well as very nice lectures on python algorithms and such on youtube, you can use a subtitle translator on youtube to translate their videos, sadly they don't have this fully in the English language :( but it's still cool IMO.
​
Cheers ;)
/r/Python
https://redd.it/ceq64n
Unsure if this will be helpful for someone, but you can use google translate and learn a bit and interesting stuff from the (Moscow Institute of Physics and Technology) [http://judge.mipt.ru/mipt\_cs\_on\_python3/](http://judge.mipt.ru/mipt_cs_on_python3/)
Seems they have a lot of information on this site as well as very nice lectures on python algorithms and such on youtube, you can use a subtitle translator on youtube to translate their videos, sadly they don't have this fully in the English language :( but it's still cool IMO.
​
Cheers ;)
/r/Python
https://redd.it/ceq64n
Plotly.py 4.0 released with many new features and a few breaking changes
https://community.plot.ly/t/introducing-plotly-py-4-0-0rc1/25639
/r/Python
https://redd.it/cer41m
https://community.plot.ly/t/introducing-plotly-py-4-0-0rc1/25639
/r/Python
https://redd.it/cer41m
Plotly Community Forum
Introducing plotly.py 4.0.0
Update: Version 4.0.0 final has been released. See the official announcement post at https://medium.com/@plotlygraphs/plotly-py-4-0-is-here-offline-only-express-first-displayable-anywhere-fc444e5659ee. Introducing plotly.py 4.0.0rc1 I’m happy to announce…
Malicious Python Libraries
https://www.zdnet.com/article/malicious-python-libraries-targeting-linux-servers-removed-from-pypi/?ftag=TRE-03-10aaa6b&bhid=22349415261538551555025320161850
/r/Python
https://redd.it/cet764
https://www.zdnet.com/article/malicious-python-libraries-targeting-linux-servers-removed-from-pypi/?ftag=TRE-03-10aaa6b&bhid=22349415261538551555025320161850
/r/Python
https://redd.it/cet764
ZDNet
Malicious Python libraries targeting Linux servers removed from PyPI
Security firm scanned over one million PyPI packages and found three backdoored libraries.
Where is css for admin pages?
Hi there, could someone point me at the css for the admin pages so I can make sure I don't change them in my own css by unwittingly using django class and id naming please?
/r/djangolearning
https://redd.it/cephv6
Hi there, could someone point me at the css for the admin pages so I can make sure I don't change them in my own css by unwittingly using django class and id naming please?
/r/djangolearning
https://redd.it/cephv6
reddit
r/djangolearning - Where is css for admin pages?
4 votes and 3 comments so far on Reddit
Python Machine Learning
2 months ago, I created and posted videos from my Python Machine Learning basics course on the this subreddit. So far they have been received very well! But as some videos were never posted I decided to include them all in this updated post for people in need of the new videos or for those who where not around when the first ones where posted. Feel free to give some feedback on my work. (All Implementation is done using Python 3)
* **Part 1 - Machine Learning For Beginners - Basics**
[https://youtu.be/E3l\_aeGjkeI](https://youtu.be/E3l_aeGjkeI)
* **Part 2 - MI environment**
[https://youtu.be/HqyrqxyDwPU](https://youtu.be/HqyrqxyDwPU)
* **Part 3 - Python Decision Tree (Theory)**
[https://youtu.be/8isUCINSmys](https://youtu.be/8isUCINSmys)
* **Part 4 - Python Decision Tree (Coding)**
[https://youtu.be/24mxQzd3EsU](https://youtu.be/24mxQzd3EsU)
* **Part 5 - Python Decision Tree (Graphiviz)**
[https://youtu.be/aVEfKRfWjHc](https://youtu.be/aVEfKRfWjHc)
* **Part 6 - Knn(Friend Recommender)**
[https://youtu.be/LK0zgA6Mr6k](https://youtu.be/LK0zgA6Mr6k)
* **Part 7- 5-Fold Cross Validation**
[https://youtu.be/Zx5cz8pXnOM](https://youtu.be/Zx5cz8pXnOM)
/r/Python
https://redd.it/cew4iw
2 months ago, I created and posted videos from my Python Machine Learning basics course on the this subreddit. So far they have been received very well! But as some videos were never posted I decided to include them all in this updated post for people in need of the new videos or for those who where not around when the first ones where posted. Feel free to give some feedback on my work. (All Implementation is done using Python 3)
* **Part 1 - Machine Learning For Beginners - Basics**
[https://youtu.be/E3l\_aeGjkeI](https://youtu.be/E3l_aeGjkeI)
* **Part 2 - MI environment**
[https://youtu.be/HqyrqxyDwPU](https://youtu.be/HqyrqxyDwPU)
* **Part 3 - Python Decision Tree (Theory)**
[https://youtu.be/8isUCINSmys](https://youtu.be/8isUCINSmys)
* **Part 4 - Python Decision Tree (Coding)**
[https://youtu.be/24mxQzd3EsU](https://youtu.be/24mxQzd3EsU)
* **Part 5 - Python Decision Tree (Graphiviz)**
[https://youtu.be/aVEfKRfWjHc](https://youtu.be/aVEfKRfWjHc)
* **Part 6 - Knn(Friend Recommender)**
[https://youtu.be/LK0zgA6Mr6k](https://youtu.be/LK0zgA6Mr6k)
* **Part 7- 5-Fold Cross Validation**
[https://youtu.be/Zx5cz8pXnOM](https://youtu.be/Zx5cz8pXnOM)
/r/Python
https://redd.it/cew4iw
Kenneth Reitz is seeking new owners for all of his repositories
https://github.com/not-kennethreitz/team/issues/21
/r/Python
https://redd.it/cexybu
https://github.com/not-kennethreitz/team/issues/21
/r/Python
https://redd.it/cexybu
GitHub
find a new home for all repos · Issue #21 · not-kennethreitz/team
In the spirit of transparency, I'd like to (publicly) find a new home for my repositories. I want to be able to still make contributions to them, but no longer be considered the "owner&quo...
Plug the Shiv App Into Nginx - Building SaaS with Python and Django #27
https://www.youtube.com/watch?v=xvCw-WCPOck&list=PLFcKEo4b_n1wQA6lKtSqCq1dTMq1c2Lmw
/r/django
https://redd.it/cevuug
https://www.youtube.com/watch?v=xvCw-WCPOck&list=PLFcKEo4b_n1wQA6lKtSqCq1dTMq1c2Lmw
/r/django
https://redd.it/cevuug
YouTube
Plug the Shiv App Into Nginx - Building SaaS with Python and Django #27
In this episode, we finally connected the Shiv app into Nginx. This completes the whole process of converting to a Django Shiv and using that to run the site...
Malicious Python libraries targeting Linux servers removed from PyPI
https://www.zdnet.com/article/malicious-python-libraries-targeting-linux-servers-removed-from-pypi/
/r/Python
https://redd.it/cety2t
https://www.zdnet.com/article/malicious-python-libraries-targeting-linux-servers-removed-from-pypi/
/r/Python
https://redd.it/cety2t
ZDNet
Malicious Python libraries targeting Linux servers removed from PyPI
Security firm scanned over one million PyPI packages and found three backdoored libraries.
Simple Multi-tenancy with Django Running on OpenShift
https://medium.com/p/b5859a94dd52
/r/django
https://redd.it/cerug1
https://medium.com/p/b5859a94dd52
/r/django
https://redd.it/cerug1
Medium
Simple Multi-tenancy with Django Running on OpenShift
The need for multi-tenant applications is not new, but with the rising popularity of Software-as-a-Service (SaaS) offerings , you are…
Are We Really Making Much Progress? A Worrying Analysis of Recent Neural Recommendation Approaches
https://arxiv.org/pdf/1907.06902.pdf
/r/MachineLearning
https://redd.it/cered0
https://arxiv.org/pdf/1907.06902.pdf
/r/MachineLearning
https://redd.it/cered0
reddit
r/MachineLearning - Are We Really Making Much Progress? A Worrying Analysis of Recent Neural Recommendation Approaches
144 votes and 21 comments so far on Reddit
Python script to install modules
I made a small python script which can parse other python scripts, and install modules/packages declared in an import or a from.
I made this because it's annoying to be receiving a script/file to work on, and not being provided a requirements.txt.
This install script can also intake multiple script inputs, and download specific versions of packages.
\*the specific version part is not convenient at all, but it's something\*
​
I'm just trying to make anything I can, to continue improving my python and developing in general. Hopefully this helps someone.
​
[https://github.com/alex067/Python-Module-Installer-Script](https://github.com/alex067/Python-Module-Installer-Script)
/r/Python
https://redd.it/cf0kw8
I made a small python script which can parse other python scripts, and install modules/packages declared in an import or a from.
I made this because it's annoying to be receiving a script/file to work on, and not being provided a requirements.txt.
This install script can also intake multiple script inputs, and download specific versions of packages.
\*the specific version part is not convenient at all, but it's something\*
​
I'm just trying to make anything I can, to continue improving my python and developing in general. Hopefully this helps someone.
​
[https://github.com/alex067/Python-Module-Installer-Script](https://github.com/alex067/Python-Module-Installer-Script)
/r/Python
https://redd.it/cf0kw8
GitHub
alex067/Python-Module-Installer
install modules declared in a python script. Contribute to alex067/Python-Module-Installer development by creating an account on GitHub.
So many libraries, so little time.
Anyone else have that "I need to learn and know everything now!" syndrome? I listed like 15 libraries and a handful of other technologies I found being requested on Indeed. It was more or less a way to compensate for the inevitable imposter syndrome. Has anyone gotten hired for jobs not knowing the "required proficiencies"?
I've only been coding Python for a year and feel like I have a pretty good grasp on the language. That is, until I look for jobs. I have a feeling I'm not the only one thinking to just learn what I need to right now and figure the rest will be taught to me at whatever job I'm able to acquire.
/r/Python
https://redd.it/ceycit
Anyone else have that "I need to learn and know everything now!" syndrome? I listed like 15 libraries and a handful of other technologies I found being requested on Indeed. It was more or less a way to compensate for the inevitable imposter syndrome. Has anyone gotten hired for jobs not knowing the "required proficiencies"?
I've only been coding Python for a year and feel like I have a pretty good grasp on the language. That is, until I look for jobs. I have a feeling I'm not the only one thinking to just learn what I need to right now and figure the rest will be taught to me at whatever job I'm able to acquire.
/r/Python
https://redd.it/ceycit
reddit
r/Python - So many libraries, so little time.
9 votes and 5 comments so far on Reddit
How does a Flask app serve multiple users/requests at once?
How does a Flask/Django app which is synchronous and single threaded serve multiple users at once?
Im learning a bit of JS off a playlist on Youtube and a video discusses async programming and its advantages in context of I/O. This made me wonder: are there certain kinds of web applications which are better suited to being developed using Node.js than a Python framework? Since a lot of the general web apps(read CRUD) need database access, would all such apps be better off being written in Node ?
/r/flask
https://redd.it/cesmvt
How does a Flask/Django app which is synchronous and single threaded serve multiple users at once?
Im learning a bit of JS off a playlist on Youtube and a video discusses async programming and its advantages in context of I/O. This made me wonder: are there certain kinds of web applications which are better suited to being developed using Node.js than a Python framework? Since a lot of the general web apps(read CRUD) need database access, would all such apps be better off being written in Node ?
/r/flask
https://redd.it/cesmvt
reddit
r/flask - How does a Flask app serve multiple users/requests at once?
24 votes and 6 comments so far on Reddit