django-admin-views icon indicating copy to clipboard operation
django-admin-views copied to clipboard

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

Open VaZark opened this issue 2 years ago • 3 comments

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"

VaZark avatar Nov 07 '22 15:11 VaZark

@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.

lud0 avatar Dec 28 '22 11:12 lud0

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.

merwok avatar Dec 28 '22 22:12 merwok

PR is on #43

peterfarrell avatar Feb 28 '23 19:02 peterfarrell