On May 13, 9:06 am, laspal <[EMAIL PROTECTED]> wrote:
> hi,
> my project is as follows.
>
> project.app.candidate
>
> url patter are as follows:
> urlpatterns = patterns('',
> (r'^project/app/', include('project.app.urls'))
>
> for app it is:
> urlpatterns = patterns('',
> (r'^candidateprofile/',
> include('project.app.candidates.urls'))
>
> for candidate it is:
> urlpatterns = patterns('project.app.candidates.views.',
> (r'^all/$', 'view_candidateprofile_list')
>
> So for listing all candidates I am using:
> /project/app/candidateprofile/all/
>
> So my problem is I am not able to get this url in my template.
> I am using href ="{ % url candidate.view_candidateprofile_list all
> %}"
>
> Please can someone tell me how to do it or what I am doing wrong
> here.....
You could explicitly name your important URLs and use that name in
your url tag. It would be something like this:
urlpatterns = patterns('project.app.candidates.views.',
url(r'^all/$', 'view_candidateprofile_list',
name='candidate_list')
The url tag would be:
{% url candidate_list %}
-Rajesh D
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---