Hi Mark,
On 07.05.23 01:31, Mark Sapiro wrote:
On 5/6/23 16:02, volkmar@grote-family.com wrote:
My urls.py:
(venv) mailman@me:/opt/mailman/mm$ grep -v "^#" urls.py from django.contrib import admin from django.urls import include, reverse_lazy, re_path from django.views.generic import RedirectView
urlpatterns = [ re_path(r'^$', RedirectView.as_view( url=reverse_lazy('list_index'), permanent=True)), re_path(r'^postorius/', include('postorius.urls')), re_path(r'^hyperkitty/', include('hyperkitty.urls')), re_path(r'', include('django_mailman3.urls')), re_path(r'^accounts/', include('allauth.urls')), # Django admin re_path(r'^admin/', admin.site.urls), ]
We and the various docs are inconsistent about 'postorius' vs 'mailman3' and 'hyperkitty' vs 'archives' in urls. Add these
re_path(r'^mailman3/', include('postorius.urls')), re_path(r'^archives/', include('hyperkitty.urls')),
to your urlpatterns list in urls.py to cover both variants.
thanks for the quick reply. I am one step closer to a solution, "http://127.0.0.1:8000/postorius/lists/?all-lists#" seems to work now. I get the functionality, but it looks ugly w/o any graphics, for which I get yet another, slightly similar, error message:
Page not found (404)
Request Method: GET Request URL: http://127.0.0.1:8000/static/postorius/img/mailman_logo_small_trans.png
Using the URLconf defined in |urls|, Django tried these URL patterns, in this order:
- ^$
- ^mailman3/
- ^archives/
- ^postorius/
- ^hyperkitty/
- ^user-profile/delete$ [name='mm_user_account_delete']
- ^user-profile/$ [name='mm_user_profile']
- ^accounts/
- ^admin/
The current path, |static/postorius/img/mailman_logo_small_trans.png|, didn’t match any of these.
The file exists, world readable:
mailman@me:/opt/mailman/mm$ find . -name mailman_logo_small_trans.png -ls 124610 2 -rw-r--r-- 1 mailman mailman 1163 May 6 12:18 ./venv/lib/python3.9/site-packages/postorius/static/postorius/img/mailman_logo_small_trans.png 125831 2 -rw-r--r-- 1 mailman mailman 1163 May 6 12:19 ./static/postorius/img/mailman_logo_small_trans.png
Q&D MM3 configuration check:
mailman@me:/opt/mailman/mm$ grep -i static *cfg *py|grep -v "#" settings_local.py: 'django.contrib.staticfiles', settings.py: 'django.contrib.staticfiles', settings.py: 'django.template.context_processors.static', settings.py:STATIC_ROOT = os.path.join(BASE_DIR, 'static') settings.py:STATIC_URL = '/static/' settings.py:STATICFILES_DIRS = ( settings.py:STATICFILES_FINDERS = ( settings.py: 'django.contrib.staticfiles.finders.FileSystemFinder', settings.py: 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
Nginx, /etc/nginx/conf.d/me.domain.de.conf
server { listen 80; listen [::]:80;
server_name me.domain.de; ... location /static/ { alias /opt/mailman/mm/static/; }
Again, many thanks in advance for any clue Volkmar