Example django app is not working?
See original GitHub issueHi,
I am trying to run the example django app using the below command
python manage.py runserver 127.0.0.1:8000
I have got the below error
django.core.exceptions.ImproperlyConfigured: Passing a 3-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.
I went ahead and removed the include in urls.py
After clearing i hit with an another issue,
django.urls.exceptions.NoReverseMatch: 'chatterbot' is not a registered namespace
app_name = "chatterbot"; \n urlpatterns = [ \n url(r'^$', ChatterBotAppView.as_view(), name='main'), \n url(r'^admin/', admin.site.urls, name='admin'), \n url(r'^api/chatterbot/', ChatterBotApiView.as_view(), name='chatterbot'), \n ]
Can you please help me resolving the issue?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top GitHub Comments
Thanks @vkosuri , I have googled it and applied the same fix. Thanks!! , I hit with this below issue
django.db.utils.OperationalError: no such table:
I have applied the fix mentioned in the https://stackoverflow.com/questions/34548768/django-no-such-table-exception/36453000
I think it should update like
could you replace line https://github.com/gunthercox/ChatterBot/blob/master/examples/django_app/example_app/templates/nav.html#L21 on your machine with above line, then restart Django server?