title: How to include my base template with custom context in Django comment templates?
body: <p>I have included Django comments framework in my project, and added custom templates to include my base template instead of the default one. </p>
  
  <p>However, in my base template, there are a few url template tags with dynamic parameters:</p>
  
  <pre><code>{% url galleries blog.pk blog.slug %}
  </code></pre>
  
  <p>Variable <em>blog</em> is included in the context in my views, but not in the comments framework, which causes <em>No reverse match</em> error when I try to add a comment. </p>
  
  <p>What would be the best way to get variable <em>blog</em> always included in the base template?</p>
  
  <p>Update:</p>
  
  <p>url patterns for blog app:</p>
  
  <pre><code>url(r'^(?P&lt;blog_id&gt;\d+)/(?P&lt;slug&gt;[\-\d\w]+)/galleries/$', 'galleries', name = 'galleries'),
  (r'^comments/', include('django.contrib.comments.urls')),
  </code></pre>