Thank you,

I am putting same pattern because both tellfriend and hero belongs to
same template.

refer template has two form.

Thank you
Bhaskar

On Jan 17, 11:25 am, Andreas Pfrengle <a.pfren...@gmail.com> wrote:
> > url(r'^member/refer/$', direct_to_template,
> >         {'template': 'member_refer.html'}, name='member_refer'),
>
> > url(r'^refer/$', 'erp_site.views.tellfriend', name='tell_friend'),
> > url(r'^refer/$', 'erp_site.views.hero', name='hero'),
>
> tell_friend and hero have the same pattern r'^refer/$', maybe that's
> the reason?
>
>
>
>
>
> > On Jan 17, 8:40 am, Andreas Pfrengle <a.pfren...@gmail.com> wrote:
>
> > > Your urls.py needs to contain sth. like that:
>
> > > urlpatterns = patterns('your_app.views',
> > >     url(r'^the_url_you_want_for_tellfriend$', 'name_of_viewfunction',
> > > name='tellfriend'),
> > >     ....
> > > )
>
> > > the last argument, name='tellfriend', is what the {% url %} tag is
> > > searching for in your urlpatterns, and then directs to the
> > > corresponding viewfunction.
> > > Details 
> > > here:http://docs.djangoproject.com/en/1.1/topics/http/urls/#topics-http-urls-
> > >  Hide quoted text -
>
> - Show quoted text -
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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