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

Urls reversing not working on Django 1.5.1 #78

Closed
guillaumepiot opened this issue May 28, 2013 · 4 comments
Closed

Urls reversing not working on Django 1.5.1 #78

guillaumepiot opened this issue May 28, 2013 · 4 comments

Comments

@guillaumepiot
Copy link

The url reverse in Django 1.5.1 is now in the format {% url 'app:url_name' %}, which is not compatible anymore with the current Rosetta templates.

Error is the following:

TemplateSyntaxError: Could not parse the remainder: '-pick-file' from 'rosetta-pick-file'. The syntax of 'url' changed in Django 1.5, see the docs.

Any chance this could be updated to Django 1.5.1?

@mbi
Copy link
Owner

mbi commented May 29, 2013

Which version of Rosetta, and which template file and line is this?

Thanks.

On Tuesday, 28 May 2013 at 18:16, Guillaume Piot wrote:

The url reverse in Django 1.5.1 is now in the format {% url 'app:url_name' %}, which is not compatible anymore with the current Rosetta templates.
Error is the following:
TemplateSyntaxError: Could not parse the remainder: '-pick-file' from 'rosetta-pick-file'. The syntax of 'url' changed in Django 1.5, see the docs.
Any chance this could be updated to Django 1.5.1?


Reply to this email directly or view it on GitHub (#78).

@guillaumepiot
Copy link
Author

The error is actually occuring on line 27 in base.html:

<h1 id="site-name"><a href="{% url 'rosetta-pick-file' %}">Rosetta</a> </h1>

Though, it looks correct, Django seems to be looking for something in the format 'rosetta:pick-file', very strange

@guillaumepiot
Copy link
Author

After further investigation, the error happens to be on my side, so all clear for me.

@caumons
Copy link

caumons commented Jun 5, 2013

@guillaumepiot please close this issue! :)

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