The bot is executed every time a command manage.py is run
See original GitHub issueIn my django installation it seems that when I run python manage.py my-command
, the bot is started again: in fact, I see the log “Loading handlers for telegram bot”.
How is that possible?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Nothing happens when I do: python manage.py command
Uninstall Python. · Go inside C drive and search Django. You will get many Django related files. · Delete every Django file. don't...
Read more >Management commands — Zulip 7.0-dev+git documentation
Custom management commands are Python 3 programs that run inside Zulip's ... a new such directory is created every time you upgrade the...
Read more >How to Make a Discord Bot in Python - Real Python
A Context holds data such as the channel and guild that the user called the Command from. Run the program: $ python bot.py....
Read more >PyCharm - Step 4. Create and Run your first Django project
manage.py is a command-line utility that lets you interact with your Django ... Run the MyDjangoProject configuration by clicking App actions execute ....
Read more >How to Create Custom Django Management Commands
Django comes with a variety of command line utilities that can be either invoked using django-admin.py or the convenient manage.py script.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The issue is that django-telegram sends webhook requests to the Telegram servers every time the module is started.
I don’t want the app to fire setWebhook requests every time I execute a manage.py command (especially, if it is already running as a server in parallel).
Happy to comment in more detail if needed.
On Thu, 17 May 2018, 12:23 JungDev, notifications@github.com wrote:
Hi all, any news about that?