koleror / django-admin-views

Easily link custom admin views and direct URLs into the Django admin
BSD 3-Clause "New" or "Revised" License
187 stars 33 forks source link

'admin_views' tag is not fetched when app is set before admin #38

Open VaZark opened 1 year ago

VaZark commented 1 year ago

When the admin_views is set before the django admin app, I'm currently receiving a 'admin_views' is not a registered tag library error.

INSTALLED_APPS = [
    'admin_views',
    'django.contrib.admin',
   # ...
]

Additional details

  1. Using default admin site
  2. No changes to template context_processors
  3. Admin URL is modified to "db-admin"
lud0 commented 1 year ago

@koleror It looks like the templatetags folder has been left out from the django-admin-views-1.0.3.tar.gz package: https://pypi.org/project/django-admin-views/#files A simple fix is to include it and re-upload the package.

merwok commented 1 year ago

The issue is that the config has packages = ["admin_views"], but that setting has never be recursive, so you need to list all packages and sub-packages (not sub-modules though), or use the setuptools find: shortcut.

peterfarrell commented 1 year ago

PR is on #43