Skip to content

Commit

Permalink
Fix ImportError: No module named 'views'
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Scarlato (Jungmann) committed Jan 28, 2016
1 parent bddb6e7 commit 78d5d21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion django_telegrambot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '0.1.4'
__version__ = '0.1.5'
default_app_config = 'django_telegrambot.apps.DjangoTelegramBot'
4 changes: 2 additions & 2 deletions django_telegrambot/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

from django.conf.urls import url, include, patterns
from views import webhook
from . import views

urlpatterns = [
url(r'(?P<bot_token>.+?)/$', webhook, name='webhook'),
url(r'(?P<bot_token>.+?)/$', views.webhook, name='webhook'),
]
4 changes: 2 additions & 2 deletions example/telegrambot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django_telegrambot.apps import DjangoTelegramBot

import logging
logger = logging.getLogger()
logger = logging.getLogger(__name__)


#in questa parte del file definire il funzionamento del bot aggiungendo gli handler
Expand All @@ -22,7 +22,7 @@ def error(bot, update, error):


def main():
print "Handlers for telegram bot"
logger.info("Loading handlers for telegram bot")

# Default dispatcher (this is related to the first bot in settings.TELEGRAM_BOT_TOKENS)
dp = DjangoTelegramBot.dispatcher
Expand Down

0 comments on commit 78d5d21

Please sign in to comment.