question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The bot is executed every time a command manage.py is run

See original GitHub issue

In 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:open
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alephyudcommented, May 17, 2018

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:

I don’t call it issue. Why the django’s modules reloading is a problem for you?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JungDev/django-telegrambot/issues/14#issuecomment-389803234, or mute the thread https://github.com/notifications/unsubscribe-auth/AIYGn3IFLudJztkSxk_FuFrie1FHS194ks5tzUGFgaJpZM4SKfJb .

0reactions
rocchidavidecommented, Dec 14, 2022

Hi all, any news about that?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found