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.

Example django app is not working?

See original GitHub issue

Hi,

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?

namespace

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kumarkrish85commented, Jul 25, 2018

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

1reaction
vkosuricommented, Jul 24, 2018

I think it should update like

<a class="nav-link" href="{% url 'chatterbot' %}">API</a>

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django app not opening from different machine - Stack Overflow
I have a Django server running on 127.0.0.1:8000. When I try to access it from the same machine then I am able to...
Read more >
Troubleshooting - Django documentation
This page contains some advice about errors and problems commonly encountered during the development of Django applications.
Read more >
Django troubleshooting - DreamHost Knowledge Base
Overview This article lists a few troubleshooting steps you can take with Django. To run the commands in this article, you must log......
Read more >
PyCharm - Step 4. Create and Run your first Django project
How to create and run a simple Django application (creating project; running Django server; configuring database; creating models, templates, views; ...
Read more >
Deploying a Django application to Elastic Beanstalk
This tutorial walks through the deployment of a default, autogenerated Django website to an AWS Elastic Beanstalk environment running Python.
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