Need help with ImportError raised when trying to load 'rest_framework.templatetags.rest_framework

1,093 views
Skip to first unread message

Duhocsinh Cali

unread,
Jul 6, 2021, 8:51:24 PM7/6/21
to Django REST framework
I've followed exact instruction here for my latest project https://www.django-rest-framework.org. However, when I run command "python manage.py runserver", this is the error I've got. The error seems to be new in this version because I've got other projects built months ago with the same frameworks and they worked fine.

  File "C:\Users\xxx\Python\Python38-32\lib\site-packages\django\template\backends\django.py", line 123, in get_package_libraries
    raise InvalidTemplateLibrary(
django.template.library.InvalidTemplateLibrary: Invalid template library specifi
ed. ImportError raised when trying to load 'rest_framework.templatetags.rest_fra
mework': cannot import name 'FieldDoesNotExist' from 'django.db.models.fields' (
C:\Users\xxx\Python\Python38-32\lib\site-packages\django\db\models\fields\__init__.py)

Python38-32
django 3.2.5
django-rest-framework 3.9.1

DJANGO DEVELOPER

unread,
Jul 6, 2021, 8:56:27 PM7/6/21
to django-res...@googlegroups.com
what you have did and can you please describe it as well so that we can understand where you're facing the issue.

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/a29f9d77-7cf7-4d6e-8512-9a1b7d6d0fa0n%40googlegroups.com.

DJANGO DEVELOPER

unread,
Jul 6, 2021, 8:57:34 PM7/6/21
to django-res...@googlegroups.com
FieldDoesNotExis you're facing issue in importing it.
Reply all
Reply to author
Forward
0 new messages