# DJDT Not Showing, loaded in source

**URL:** <https://forum.codewithmosh.com/t/djdt-not-showing-loaded-in-source/17903>\
**Category:** Django\
**Created:** [January 25, 2023, 1:11pm UTC](https://forum.codewithmosh.com/t/djdt-not-showing-loaded-in-source/17903 "2023-01-25T13:11:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ulryx](https://avatars.discourse-cdn.com/v4/letter/u/e5b9ba/32.png) [@Ulryx](https://forum.codewithmosh.com/u/Ulryx)\
**Post date:** [January 25, 2023, 1:11pm UTC](https://forum.codewithmosh.com/t/djdt-not-showing-loaded-in-source/17903/1 "2023-01-25T13:11:42Z")

</div>

Having some issues with DJDT not showing on my project. I’ve followed the instructions both in video and from DJDT. If I view source, it’s loaded in but just not showing.

I was able to get it to show in a different browser yesterday, but on re-starting project it’s not showing in any now.

Settings.py:

> INSTALLED\_APPS = [  
> ‘django.contrib.admin’,  
> ‘django.contrib.auth’,  
> ‘django.contrib.contenttypes’,  
> ‘django.contrib.messages’,  
> ‘django.contrib.staticfiles’,  
> ‘playground’,  
> ‘debug\_toolbar’,  
> ]

> MIDDLEWARE = [  
> ‘debug\_toolbar.middleware.DebugToolbarMiddleware’,

> INTERNAL\_IPS = [  
> “127.0.0.1”,  
> ]

urls.py:

```
path(' __debug__ /', include('debug_toolbar.urls')),

```

Any help would be greatly appreciated, I’m at wit’s end.

---

<div class="post-metadata">

**Author:** ![tooTALLtim](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/tootalltim/32/5469_2.png) [@tooTALLtim](https://forum.codewithmosh.com/u/tooTALLtim)\
**Post date:** [January 26, 2023, 9:53pm UTC](https://forum.codewithmosh.com/t/djdt-not-showing-loaded-in-source/17903/2 "2023-01-26T21:53:19Z")

</div>

Looking over the installation docs, in step 2. Check for Prerequisites, did you set:

```auto
TEMPLATES = [
    {
        "BACKEND": "django.template.backends.django.DjangoTemplates",
        "APP_DIRS": True,
        # ...
    }
]

```

The TEMPLATES in your settings.py file should look like this:

```auto
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

```

Source:  
[https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#check-for-prerequisites](https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#check-for-prerequisites)

---

<div class="post-metadata">

**Author:** ![Ulryx](https://avatars.discourse-cdn.com/v4/letter/u/e5b9ba/32.png) [@Ulryx](https://forum.codewithmosh.com/u/Ulryx)\
**Post date:** [February 7, 2023, 8:09pm UTC](https://forum.codewithmosh.com/t/djdt-not-showing-loaded-in-source/17903/3 "2023-02-07T20:09:50Z")

</div>

Sorry for the late reply, and thank you for your help.

I did have my settings set that way, but was still unable to progress. Since I had abandoned this and took another course, I was able to better debug this myself, so for anyone having issues.

SOLUTION:

In your settings.py file, add the following:

```auto
#settings.py
if DEBUG:
    import mimetypes
    mimetypes.add_type("application/javascript", ".js", True)

```

After this you’ll need a wipe in browser settings, or just open an incognito tab.

> <https://stackoverflow.com/questions/11811256/how-to-set-content-type-of-javascript-files-in-django>
