88👍
A note for others who run into this: you need to restart the development server to register new files in your django app.
15👍
My problem was due to a typo. I called the file in templatetags __init.py__
but it should have been named __init__.py
.
- [Django]-Django: how to do calculation inside the template html page?
- [Django]-Invalid command WSGIDaemonProcess Deploy Django application on CentOS 6.7
- [Django]-Django migrations RunPython not able to call model methods
8👍
I had the same issue. The problem was that I was using a shared templatetags
directory, and that didn’t have the __init__.py
in it. Added that empty file in, restarted server, and all was well.
- [Django]-How to add an model instance to a django queryset?
- [Django]-Logging in Django and gunicorn
- [Django]-Django 1.8 KeyError: 'manager' on relationship
Source:stackexchange.com