Django-disqus: manage.py not accepting API key

47 Views Asked by At

I'm trying to integrate disqus into my Django app. I got the API key and put it in settings.py, but when I tried to start the local server, it is giving me an error.

settings.py

INSTALLED APPS = [
    ...
    'disqus',
]

DISQUS_API_KEY = 'key'
DISQUS_WEBSITE_SHORTNAME = 'website_shortname'

Of course I've put the actual key and shortname. The error I'm getting:

NameError: name 'key' is not defined

help

0

There are 0 best solutions below