0

I have installed mailman3 and followed this instruction: https://lab.uberspace.de/guide_mailman-3/

My problem is, that css files for HyperKitty (and the login screen) are not available. If I'm on https://example.org/postorius/ everything looks good but on https://example.org/hyperkitty/ the main css file is not found.

In ~/mailman-suite/settings.py I set STATIC_ROOT = '/home/hmail/html/static/' and most of the files are placed there (and are available from the webserver), except some that are placed in ~/mailman-suite/home/hmail/html/static/ (which are not available from the webserver).

The HyperKitty website refers to /static/CACHE/css/hyperkitty.413473e09b83.css which is not placed in the right directory, but under /home/hmail/mailman-suite/home/hmil/html/static/CACHE/css/hyperkitty.413473e09b83.css

Any idea why or how I can fix this?

Installed versions:

  • mailman3: 3.3.8
  • HyperKitty: 1.3.7
  • postorius: 1.3.8
  • mailman-hyperkitty: 1.2.1
  • whoosh: 2.7.4

I suspect that it is a path problem as /home/hmail/mailman-suite/home/hmil/html/static/ looks very similar to ~/mailman-suite/home/hmail/html/static/ - probably a lost "/"... But where can I adjust it?

Regards!
Stefan

1
  • I added a symbolic link ln -s /home/hmail/html/static/ /home/hmail/mailman-suite/home/hmail/html/static to fix it and after restarting uwsgi it looks like it is working...
    – habakuk
    Commented Jun 16, 2023 at 20:50

1 Answer 1

0

You might need to add the following config into your settings.py (or settings_local.py) of Django:

CACHES = {
    'default': {
        'BACKEND': 'diskcache.DjangoCache',
        'LOCATION': '/home/hmail/html/static/CACHE',
    },
}

Docs: https://grantjenks.com/docs/diskcache/tutorial.html#djangocache

2
  • If I add this to settings.py I get the error "ModuleNotFoundError: No module named 'diskcache'"
    – habakuk
    Commented Jun 16, 2023 at 20:22
  • You can fix this error with pip3.8 install --user diskcache command. Commented Jun 18, 2023 at 6:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .