Hi,

You can use  {% url customer_edit customer.id %} only if customer_edit
is declared as the name of view in urls.py.
See http://docs.djangoproject.com/en/1.1/topics/http/urls/#id2 for more details.

David


On Sat, Oct 17, 2009 at 11:10 AM, Gerard <lijss...@gp-net.nl> wrote:
>
> Hi All,
>
> I've been trying to figure out why this works:
>
> {% url project.myapp.views.customer_edit customer.id %}
>
> And this does not:
>
> {% url customer_edit customer.id %}
>
> I could go for url() in my patterns and decouple view and pattern name, but
> is it not possible to tell the template loader (?) where to look for views?
>
> Feels like it just needs an import statement on the right place.
>
> NB: I tried passing views in patterns as strings and methods.
>
> Please advice.
>
> Kind regards,
>
> Gerard.
>
> --
> self.url = www.gerardjp.com
>
> >
>

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