In my template, I have:

<a href="{% url myapp.views.byname param0 param1 param2 %}">Read More
ยป</a>


I'm seeing that the url generated via the url template tag is, eg:

http://mydomain.com/mysite/param0val/param1val/param2val/

'mysite' is the project directory created via, eg, "django-admin.py
startproject mysite"; I don't want it to be part of the generated url;
I want the generated url to be:

http://mydomain.com/param0val/param1val/param2val/

1. Is there a way to accomplish this, preferably using the url
template tag ?

My urls.py contains:

    (r'^(?P<param0>\w+)/(?P<param1>(\w|-)+)/(?P<param2>\d+)(-(\w+))*/
$', 'myapp.views.byname'),

2. Why/how is 'mysite' built into the url ?

Thanks,

pk

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to