title: How do I set the base url for a django app?
body: <p>I'm using the app <a href="https://github.com/bread-and-pepper/django-userena" rel="nofollow">django-userena</a> to manage user accounts. I have it working, and can enable users to sign up, and they then receive an email to verify their account. However, I'm having difficulty figuring our where to change the base url, so that the email does not use <code>example.com</code>. For example, the email currently says:</p>
  
  <blockquote>
    <p>Thank you for signing up at example.com.</p>
    
    <p>To activate your account you should click on the link below:</p>
    
    <p><a href="http://example.com/accounts/activate/14bd7b230525224b6bfd71ca4efd531d4694f857/" rel="nofollow">http://example.com/accounts/activate/14bd7b230525224b6bfd71ca4efd531d4694f857/</a></p>
    
    <p>Thanks for using our site!</p>
    
    <p>Sincerely, example.com</p>
  </blockquote>
  
  <p>I understand that this is generated from the following template:</p>
  
  <pre><code>{% load i18n %}{% autoescape off %}{% load url from future %}
  {% if not without_usernames %}{% blocktrans with user.username as username %}Dear {{ username }},{% endblocktrans %}
  {% endif %}
  {% blocktrans with site.name as site %}Thank you for signing up at {{ site }}.{% endblocktrans %}
  
  {% trans "To activate your account you should click on the link below:" %}
  
  {{ protocol }}://{{ site.domain }}{% url 'userena_activate' activation_key %}
  
  {% trans "Thanks for using our site!" %}
  
  {% trans "Sincerely" %},
  {{ site.name }}
  {% endautoescape %}
  </code></pre>
  
  <p>However, I can't figure out where <code>example.com</code> is set - I've tried searching and looked through each file that has this, and I can't locate where I should (or if I should) be setting the url somewhere. </p>