jazzband / django-avatar

A Django app for handling user avatars.
BSD 3-Clause "New" or "Revised" License
808 stars 303 forks source link

Error: Reverse for 'avatar_change' not found #240

Open Jitendra1965 opened 1 year ago

Jitendra1965 commented 1 year ago

My code had been working fine since long with this package in django but suddenly, it has stopped with the following message.

Reverse for 'avatar_change' not found. 'avatar_change' is not a valid view function or pattern name.

I verified, all is setup correctly. Look like the problem is in this code:

href="{% url 'avatar_change' %}"

I noticed the django-avatar code was changed 2 weeks ago to fix the references. Could that be causing it?

Jitendra1965 commented 1 year ago

I fixed the issue after discovering that indeed the url reference were modified 2 weeks ago in django-avatar.

I made the changed in url calls in my code and that fixed it.

I opened the ticket to report that your documentation is out of sync with the application changes.

jlusco commented 8 months ago

I fixed the issue after discovering that indeed the url reference were modified 2 weeks ago in django-avatar.

I made the changed in url calls in my code and that fixed it.

I opened the ticket to report that your documentation is out of sync with the application changes.

What did you do to fix it?

georgemagnuson commented 5 months ago

Change log 8.0 says 'Use path and path converters (changes all url names from prefix avatar_ to avatar:.)' avatar_change is now avatar:change

Jitendra1965 commented 5 months ago

I fixed the issue after discovering that indeed the url reference were modified 2 weeks ago in django-avatar. I made the changed in url calls in my code and that fixed it. I opened the ticket to report that your documentation is out of sync with the application changes.

What did you do to fix it?

Sorry for the delay in responding. I did precisely what georgemahnuson wrote above.

I changed it to {% url 'avatar:change' %}