-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to know the full url for the current page from within a Mako template file in Pylons.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi guys,
I'm making a website that mail users when a movie or a pc game has released. It isn't too complex - users can sign up, choose movies/music or a genre and save the settings. When the movie/music is released - it mails the user. Some other functionality too but this is the jist.
Now, I've…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a template variable, c.is_friend, that I would like to use to determine whether or not a class is applied. For example:
if c.is_friend is True
<a href="#" class="friend">link</a>
if c.is_friend is False
<a href="#">link</a>
Is there some way to do this inline, like:
<a…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I periodically get this problem where all of a sudden mako is using old versions of templates, and it's not until I manually go and update the template files that they'll use the current version. I'm using
./manage.py runserver
I think it's usually after I update using source control, but it's…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In trying to add a cached section to a Mako template, I get the error listed in the above question. Adding () to the end gets rid of the error, but I see no content on my page. Any help is appreciated!
<%def name="test" cached="True" cache_timeout="60" cache_type="file">
Test
/%def>
>>> More