Armandas,

The url patterns are not sent within the HttpResponse and therefore not
passed to the template context. What exactly are you trying to do ?

Porbably, it's just a small fix on your views .

[]s!

Tkm


On Thu, Jun 5, 2008 at 3:40 PM, Armandas <[EMAIL PROTECTED]> wrote:

>
> 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.
> >
>


-- 
[]s!

Tkm
http://djangopeople.net/brunotikami/

--~--~---------~--~----~------------~-------~--~----~
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