Pass variable %s to href with Google App Engine
<p>I am trying to pass my variable id to the href </p>

<pre><code>   {% set id = p.key().id() %}

&lt;a href="/blog/editpost/%s" % id &gt; Edit Post&lt;/a&gt; 
</code></pre>

<p>But it is showing up as /blog/editpost/%s instead of /blog/edit/93090902902 where the number is the post id. </p>

<p>I know how to do it using ?postId = and also </p>

<pre><code>&lt;a href="/blog/editpost/{{p.key().id()}}"&gt; Edit Post &lt;/a&gt; 
</code></pre>

<p>But with that method I have to get the last thing in the url path in my python file. I want to instead get the id request object. </p>

<p>What I am asking here is how can I use %s to send my variable id instead of using some other way of sending it? </p>