On Sun, Aug 7, 2011 at 10:35 AM, Jimmy <jimmy.don.k...@gmail.com> wrote:

> Hi,
>
> I got the error "Caught ImportError while rendering: No module named
> urls" when using:
>
> {% url 'card.views.create_card' %} in the template file
>
For django 1.2 and earlier versions you should use the syntax {% url
card.views.create_card %}

Django 1.3 supports the forward compatible {% url 'card.views.create_card'
%} syntax from the future library. You'll need to add the following line in
your templates to use the future library.
{% load url from future %}


>
> in the urls.py the route to the url is:
>
> urlpatterns = patterns('',
>   url(r'card/create$', 'card.views.create_card'),
> )
>
> The Django version I use is 1.3
>
> May I know what did I miss in setting?
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to