i don\'t find any solution, how to get the url in template with the following configuration (using Django1.3):
urls.py
urlpatterns = pattern
Well, I usually set namespace for included urls to simplify the process:
in root urlpatterns
url(r'^articles/', include('articles.urls', namespace='articles')),
in articles/urls.py
url(r'^(\d+)/$', 'read', name='read'),
url(r'^publish/$', 'publish', name='publish'),
And then in your template you can simply type:
{% url articles:read 1 %}
or
{% url articles:publish %}
More about this here.