On Fri, Sep 1, 2017 at 5:44 PM, mohammad k <k2527...@gmail.com> wrote:
> when you use the url tage in templates
> you have to used like that {% url 'polls:edit' parameters %}: polls is the
> app or controller and the edit is view or method

No you don't *have* to. And polls isn't the app or controller. Please review:
https://docs.djangoproject.com/en/1.11/topics/http/urls/#url-namespaces

Also, there's a reason you won't find many reusable apps with URL
namespace support: it's one of the more counter-intuitive features of
Django and solves only very few cases where you think it might provide
a solution.
-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Bgw1GUnsS4Lba4%3DFSvqoCBt38RWn5i5x4qAUhSmBL90aFauaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to