configurable bot token
This commit is contained in:
@@ -2,15 +2,13 @@ import os
|
||||
from celery import Celery
|
||||
|
||||
|
||||
config = {
|
||||
'broker_url': 'redis://127.0.0.1:6379/1',
|
||||
}
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
|
||||
|
||||
app = Celery('telegram_bots')
|
||||
|
||||
app.config_from_object(config)
|
||||
app.config_from_object({
|
||||
'broker_url': 'redis://127.0.0.1:6379/1',
|
||||
})
|
||||
app.autodiscover_tasks()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user