I'm having an issue where a call to the url template tag in Django is appending the site name (I don't want it in there.)

Let's say that the site name is 'mysite'.

So for example:

```
<a href="{% url myapp.views.myview "myparam" %}">Link text</a>

```

is producing:

```
<a href="/mysite/foo/bar">Link text</a>

```

when I want it to produce:

```
<a href="/foo/bar">Link text</a>

```

My urls.py is set up like this:

```
from django.conf.urls.defaults import *
import mysite.myapp.views

urlpatterns = patterns('',
    (r'^/foo/bar/$', 'mysite.myapp.views.myview'),
)

```

Can anyone point me in the right direction?

Edit - when the site was in development, it was on a subdirectory of a test server, with the app as the subdirectory! So it was sitting on <http://www.mytestserver.com/mysite>. There's no caching in place, and all the references to /mysite were removed prior to going live.