Forums

JAZZMIN NOT WORKING

After deployment, Django Jazzmin won't work. It worked fine at the production stage . All was working fine. And after deployment. the jazzmin didn't work with the admin. Is there any code I need to paste here so you can check? Or there are tips I can get to follow up. I have ran collect static and it keeps saying this:

(env) 21:02 ~/MYBLOG-CALLED-EBLOG/eblog (master)$ python manage.py collectstatic
You have requested to collect static files at the destination
location as specified in your settings:
    /home/codingembryo/MYBLOG-CALLED-EBLOG/eblog/static
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
Found another file with the destination path 'admin/js/cancel.js'. It will be ignored since only the first encountered file is collected. If this is
 not what you want, make sure every static file has a unique path.

Okay, when you load up the admin, what happens? Are there errors?

The error persist:

Error running WSGI application
2025-04-08 14:20:21,729: ModuleNotFoundError: No module named 'jazzmin'
2025-04-08 14:20:21,729:   File "/var/www/kauealves_pythonanywhere_com_wsgi.py", line 22, in <module>
2025-04-08 14:20:21,729:     application = get_wsgi_application()
2025-04-08 14:20:21,729:                   ^^^^^^^^^^^^^^^^^^^^^^
2025-04-08 14:20:21,730: 
2025-04-08 14:20:21,730:   File "/usr/local/lib/python3.11/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2025-04-08 14:20:21,730:     django.setup(set_prefix=False)

[edit by admin: formatting]

You'll need to install jazzmin into your virtualenv in order to use it.