Hi, I have problems making {% url %} work.

I have this urls.py file in my project directory:
from django.conf.urls.defaults import *

urlpatterns = patterns('root',
    (r'^blog/', include('blogapp.urls')),
    (r'^admin/', include('django.contrib.admin.urls')),
)

then in my applicatoion folder, another urls.py (which is included in
first file):
from django.conf.urls.defaults import *

urlpatterns = patterns('blogapp.views',
    (r'^$', 'homepage'),
    (r'^([a-z0-9-]+).html(#[a-z]+)?$', 'post_by_name'),
    (r'^tags/([a-z0-9-]+)/$', 'posts_by_tag'),
)

Now I'm adding {% url posts_by_tag %} in my template, but it doesn't
output anything. I also tried the following combinations:
{% url blogapp.posts_by_tag %}
{% url blogapp.views.posts_by_tag %}

Do you have any suggestions?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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