Custom Search

Wednesday, November 30, 2016

python django ImportError: cannot import name update_wrapper

Error:
from django.utils.functional import update_wrapper
ImportError: cannot import name update_wrapper

Fix:
import update_wrapper from functools
from functools import update_wrapper

No comments:

Post a Comment