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.

u'chatterbot' is not a registered namespace

See original GitHub issue

I am running the Django app by executing python manage.py runserver localhost:8000 and receiving this error:

NoReverseMatch at /

u'chatterbot' is not a registered namespace

Request Method: 	GET
Request URL: 	http://localhost:8000/
Django Version: 	1.11.15
Exception Type: 	NoReverseMatch
Exception Value: 	

u'chatterbot' is not a registered namespace

Exception Location: 	/usr/lib64/python2.7/site-packages/django/urls/base.py in reverse, line 87
Python Executable: 	/bin/python
Python Version: 	2.7.5
Python Path: 	

['/home/oracle/Git/ChatterBot/examples/django_app',
 '/usr/lib64/python27.zip',
 '/usr/lib64/python2.7',
 '/usr/lib64/python2.7/plat-linux2',
 '/usr/lib64/python2.7/lib-tk',
 '/usr/lib64/python2.7/lib-old',
 '/usr/lib64/python2.7/lib-dynload',
 '/usr/lib64/python2.7/site-packages',
 '/usr/lib64/python2.7/site-packages/gtk-2.0',
 '/usr/lib/python2.7/site-packages']

Server time: 	Thu, 16 Aug 2018 10:57:51 +0000

Adding url(r'^chatterbot/', include('chatterbot.ext.django_chatterbot.urls', namespace='chatterbot'), to urls.py gives me this error:

Unhandled exception in thread started by <function wrapper at 0x7f490f5e5578>
Traceback (most recent call last):
...
  File "/home/oracle/Git/ChatterBot/examples/django_app/example_app/urls.py", line 11
    ]
    ^
SyntaxError: invalid syntax

Please help.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
RishiTekecommented, Sep 18, 2018

I have solved problem by replacing var chatterbotUrl = '{% url "chatterbot" %}'; by var chatterbotUrl = '{% url "chatterbot:chatterbot" %}'; on line 46 in template/app.html

0reactions
lock[bot]commented, Jul 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django Error u"'polls" is not a registered namespace
The answer is to add namespaces to your root URLconf. In the mysite/urls.py file (the project's urls.py, not the application's), go ahead and...
Read more >
Weird django.urls.exceptions.NoReverseMatch: 'review' is not ...
NoReverseMatch: 'review' is not a registered namespace. 571 views ... To use the "review:detail" notation, you need to enable namespaces.
Read more >
is not a registered namespace - Using Django
Hi there! I have a Django project with a middleware which sets request.urlconf depending on the host header. Here's the middleware: class ...
Read more >
is not a registered namespace : r/django - Reddit
I thought namespace in main/urls.py and app_name in newsletter/urls where supposed to register the namespace ... Thanks a lot for any help here, ......
Read more >
Untitled
Adiperkasa ekabakti industry pt, Weep no more sad fountains chords, 4 100 micron filter ... Marimekko putkinotko wallpaper, Company registration synonym, ...
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