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

a few templates don't work with python3.3 and django 1.5 #16

Closed
shevitz opened this issue Sep 26, 2013 · 2 comments
Closed

a few templates don't work with python3.3 and django 1.5 #16

shevitz opened this issue Sep 26, 2013 · 2 comments

Comments

@shevitz
Copy link

shevitz commented Sep 26, 2013

I am having a problem with 3 templates: activate.html, login.html, and activation_complete.html

I seems that on my setup, python3.3 and django 1.5.1 the urls don't reverse correctly.
The solution I have found moves the {% url %} tags immediately after the {% block content %} tag. Then everything works fine. Otherwise all links send you back to /login and you can't get past the login screen.

I think there were 4 changes in all that needed to be made. For whatever reason it seems that the {% url %} lose scope in the {% block content %} and don't render correctly.

Thanks,
Danny

@sorrat
Copy link

sorrat commented Oct 18, 2013

Same for me.
Python 2.7, Django 1.5.1

yourcelf added a commit that referenced this issue Oct 19, 2013
It appears that {% url ... as ... %} variable definitions do not work
if defined outside the {% block content %} scope.  Move the url
definitions inside the block.  Fixes issue #16.
@yourcelf
Copy link
Owner

Should be fixed in latest master. Thanks!

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