u'chatterbot' is not a registered namespace
See original GitHub issueI 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:
- Created 5 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have solved problem by replacing
var chatterbotUrl = '{% url "chatterbot" %}';
byvar chatterbotUrl = '{% url "chatterbot:chatterbot" %}';
on line 46 in template/app.htmlThis 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.