Custom template not loading correctly in Django
问题 I'm attempting to sub out the submit_line.html of the DetailView of an admin template in Django, but I'm getting this error: InvalidTemplateLibrary at / Module data_operations.templatetags.data_operations_tags does not have a variable named 'register' My settings.py contains my app name: INSTALLED_APPS = [ ... 'data_operations', ... ] And template data: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ # os.path.join(PROJ_DIR, 'templates') ], 'APP_DIRS':