Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Reverse for 'avatar_change' not found #240

Open
Jitendra1965 opened this issue Nov 1, 2023 · 4 comments
Open

Error: Reverse for 'avatar_change' not found #240

Jitendra1965 opened this issue Nov 1, 2023 · 4 comments

Comments

@Jitendra1965
Copy link

Jitendra1965 commented Nov 1, 2023

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
Copy link
Author

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
Copy link

jlusco commented Mar 1, 2024

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
Copy link

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
Copy link
Author

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' %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants