title: How can I centralize URLs in Django templates?
body: <p>I made a mistake while writing my Django application in hard coding all the URLs in my templates.</p>
  
  <p>For instance, my links look like:</p>
  
  <pre><code>&lt;a href="/course/63/"&gt;Advanced Basketweaving&lt;/a&gt;
  </code></pre>
  
  <p>Now, my client adamantly wants me to change all instances of links akin to this one to</p>
  
  <pre><code>&lt;a href="/class/63/"&gt;Advanced Basketweaving&lt;/a&gt;
  </code></pre>
  
  <p>where "class" replaces "course".</p>
  
  <p>In the words of Emerson, a foolish consistency is the hobgoblin of little minds, so I must pay for my mistake by undertaking a painstaking find and replace operation.</p>
  
  <p>What was the right thing to do here?</p>