'djdt' is not a registered namespace

See original GitHub issue

Hi, its my 3 try of debugtoolbar and… 3 times fail

First if couldnt get it shown. 2 years later same, this time i get errors :

NoReverseMatch at / ‘djdt’ is not a registered namespace

I did everything in settings and URLS as i should

problem is in line 14:

13 <div id="djDebug" class="djdt-hidden" dir="ltr"
14 	     data-store-id="{{ toolbar.store_id }}" data-render-panel-url="{% url 'djdt:render_panel' %}"
15 	     {{ toolbar.config.ROOT_TAG_EXTRA_ATTRS|safe }}>

django version 1.9 1.10, 1.10.04 debug panel 1.6 from PIP3

settings:

INSTALLED_APPS [‘django.contrib.admin’, ‘django.contrib.auth’, ‘django.contrib.contenttypes’, ‘django.contrib.sites’, ‘django.contrib.sessions’, ‘django.contrib.messages’, ‘django.contrib.staticfiles’, ‘django_hosts’, ‘ckeditor’, ‘django_user_agents’, ‘debug_toolbar’, ‘apps.core’, ‘apps.blog’]

INTERNAL_IPS
(‘127.0.0.1’, ‘192.168.1.41’)

MIDDLEWARE_CLASSES (‘django_hosts.middleware.HostsRequestMiddleware’, ‘debug_toolbar.middleware.DebugToolbarMiddleware’, ‘django.contrib.sessions.middleware.SessionMiddleware’, ‘django.contrib.auth.middleware.AuthenticationMiddleware’, ‘django.contrib.messages.middleware.MessageMiddleware’, ‘django.middleware.clickjacking.XFrameOptionsMiddleware’, ‘django.middleware.common.CommonMiddleware’, ‘django.middleware.csrf.CsrfViewMiddleware’, ‘django.middleware.locale.LocaleMiddleware’, ‘django_hosts.middleware.HostsResponseMiddleware’, ‘django_user_agents.middleware.UserAgentMiddleware’)

DEBUG is set to TRUE

Please… help… its frustrating i cannot use one of best tools for debuging for 3 years…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
h4k1m0ucommented, Mar 25, 2017

Thanks for your prompt response.

Actually, I got the same error but for a different reason. It was caused by the debug-toolbar url route that I’ve pasted inside my app’s url.py, instead of putting it inside the project’s url.py

On 25 Mar 2017 12:03 pm, “NomadDemon” notifications@github.com wrote:

Yes i figgured it out. First i had some issues with configs, always prod config was used with DEBUG = False. - fixed

Then was problem with no toolbar visible. When using gunicorn with SOCK option instead of HTTP, no remote_addr is passing. Had to manually used my own “validator for debugging user”

The 2nd part might be useful for other users.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jazzband/django-debug-toolbar/issues/911#issuecomment-289207638, or mute the thread https://github.com/notifications/unsubscribe-auth/AECBuNt3Zeul4JCyIhkb74hoRCbnCs80ks5rpQKggaJpZM4Lwdtd .

1reaction
aaugustincommented, Jan 28, 2017

Most likely this error means you didn’t configure the URLs correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

After adding django-debug to App, getting "'djdt' is not a ...
What I've tried: changing the order of these Middleware entries in settings.py (first, middle and last); adding a namespace attribute to my ...
Read more >
django.urls.exceptions.NoReverseMatch: 'djdt' is not ... - GitHub
Hi there, I'm trying to configure django-debug-toolbar. ... NoReverseMatch: 'djdt' is not a registered namespace #1332.
Read more >
Server throws 'NoReverseMatch: 'djdt is not a registered ...
Server throws 'NoReverseMatch: 'djdt is not a registered namespace' while launching learning_site:8000 w/ debug-toolbar.
Read more >
'djdt' is not a registered namespace When Testing With DJRF
I'm building some tests that post to a Django Rest Framework API, but I'm running into some errors. I have a test that...
Read more >
After adding django-debug to App, getting "'djdt' is not a ...
Django : After adding django-debug to App, getting "' djdt ' is not a registered namespace " [ Beautify Your Computer ...
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