Django 'jsonify' is not a registered tag library. Must be one of:

471 Views Asked by At

I am working on a django project where Installed a package called jsonify which is to be used in the django template from https://pypi.org/project/jsonify/ & added in the installed apps:

INSTALLED_APPS = [
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    "jsonify",
    "main",
]

In my local environment it works just fine but when I deployed to heroku I keep

'jsonify' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache i18n l10n log static to_and tz

Also note I have also made my own custom template tag "to_and" which works perfectly fine. This only happens in production in heroku and not in my local envirnoment. Thanks in advance

1

There are 1 best solutions below

1
Deepak On

jsonify is a function in Flask's flask. JSON module. I recommend to use JsonResponse built-in function of Django. Or just