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
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
reddit
r/IPython - TOC Depth
2 votes and 1 comment so far on Reddit
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
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
reddit
r/django - Channels works in development but not in production when passing user
0 votes and 1 comment so far on Reddit
[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
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
https://imgur.com/a/RKeuCva
/r/Python
https://redd.it/cc5ch7
Imgur
Post with 5169 views.
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
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
Stack Overflow
How to fix rerouting and form submission issue w/ Heroku Flask deployment?
I recently tried deploying my Flask application to Heroku and have been running into a few issues. When testing the application locally I have no issues w/ the app at all. Everything like the user
How do you keep a script running continuously?
I know how to run a script once in Django, for example using Requests to download a web page and then display something to the user.
However, how would I go about having a script get the web page every X seconds? Would I need an additional VM or other resources to keep that script running at all times?
/r/django
https://redd.it/cc69m2
I know how to run a script once in Django, for example using Requests to download a web page and then display something to the user.
However, how would I go about having a script get the web page every X seconds? Would I need an additional VM or other resources to keep that script running at all times?
/r/django
https://redd.it/cc69m2
reddit
r/django - How do you keep a script running continuously?
4 votes and 9 comments so far on Reddit