Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
I wrote a script to help you set your Wi-Fi name to an emoji 🤠 💩

It's for Verizon FiOS routers, which, like most routers, only let you use ASCII text for your SSID. Where's the fun in that?

​

[https://github.com/michaelkolber/emojifi](https://github.com/michaelkolber/emojifi)

/r/Python
https://redd.it/cbsg0y
TOC Depth

How do I increase the maximum level of depth of my table of contents? I need 6 sub-headings, but it can only give me 5

/r/IPython
https://redd.it/cbuxt6
Channels works in development but not in production when passing user

I am using channels and would like to have access a user's info in the front-end, so following the tutorial, I wrote the following code:

class ChatConsumer(WebsocketConsumer):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if self.groups is None:
self.groups = []
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'chat_%s' % self.room_name

def connect(self):
# Join room group
async_to_sync(self.channel_layer.group_add)(
self.room_group_name,
self.channel_name


/r/django
https://redd.it/cc5rp4
[R] Facebook, Carnegie Mellon build first AI that beats pros in 6-player poker

Pluribus is the first AI bot capable of beating human experts in six-player no-limit Hold’em, the most widely-played poker format in the world. This is the first time an AI bot has beaten top human players in a complex game with more than two players or two teams.

​

Link: [https://ai.facebook.com/blog/pluribus-first-ai-to-beat-pros-in-6-player-poker/](https://ai.facebook.com/blog/pluribus-first-ai-to-beat-pros-in-6-player-poker/)

/r/MachineLearning
https://redd.it/cbz7lg
I wrote an integrated POS system for my girlfriend's restaurant using tkinter.
https://imgur.com/a/RKeuCva

/r/Python
https://redd.it/cc5ch7
# 1
# 2
# 3
# 4
# 5
# 6
# 7
# 8
# 9
# 10
# 11
# 12
# 13
# 14
Weird issues when deploying Flask app to Heroku

Hello,

I've recently built a Flask app that I've been trying to deploy to Heroku. It works perfectly fine locally but has some really weird issues when it's running on Heroku. It functions fine but when I submit forms it makes me hit the submit button 3-4 times before anything happens or just routes me to a completely different unassociated part of the site.

A more detailed example w/ videos is shown here: [https://stackoverflow.com/questions/56727704/how-to-fix-rerouting-and-form-submission-issue-w-heroku-flask-deployment](https://stackoverflow.com/questions/56727704/how-to-fix-rerouting-and-form-submission-issue-w-heroku-flask-deployment)

Honestly I've been looking things over for a few hours and still have zero idea what could be going on.

/r/flask
https://redd.it/cc4rs9