Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Caught NoReverseMatch while rendering: Reverse for ''upload-delete'' with arguments '(3L,)' and keyword arguments '{}' not found #28

Closed
claudod opened this issue May 17, 2013 · 1 comment

Comments

@claudod
Copy link

claudod commented May 17, 2013

Hello,

I'm on django 1.3 and when there are pictures in the db, the code raise an exception because of file "picture_form.html", line 58. This is the statement that does not work: {% url 'upload-delete' picture.id %}

I'm a django newbe, so at the moment I've fixed it just using /upload/delete/{{ picture.id }} instead

For the rest project works well, congrats for it

@sigurdga
Copy link
Owner

This is because the urls.py uses syntax layout introduced in 1.4 and old syntax not working in 1.5, so it is hard to get this to work in both 1.3 and 1.5. BTW 1.3 is unsupported by Django, and the upgrade path to 1.4 has been really simple (as in nothing to do) for my small and large projects.

I will not "fix" this by adding logic to support a deprecated version of Django. I'm happy that you was able to find a workaround.

Thanks for the interest, and your kind words. And it should really be easy to test this project in a virtualenv with a newer Django.

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

No branches or pull requests

2 participants