Tuesday, May 31, 2016

Re: passing url variables to views

Yeah

In your view you can access it by kwargs.get('user_del')



On Wed, 1 Jun 2016 at 02:33 dk <demiank@gmail.com> wrote:
and then i can use it in the view? as an argument?


On Tuesday, May 31, 2016 at 12:33:55 PM UTC-5, Akhil Lawrence wrote:
Hi,

The URL you are calling is wrong.. 


No need to pass it as an query parameter.




On Tuesday, 31 May 2016 15:03:59 UTC+5:30, dk wrote:
this is the URS i get


and i want to be able to get the string  ccc_ccc***a_b***

my url pattern is: 
url(r'^run_delete/(?P<user_del>\w+)/$', views.run_delete, name='run_delete')


but it looks like is not catching it,   i am missing something? i am using django 1.9

thanks guys

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/kTYP0d5btHI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@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/a864bc58-bc60-4863-bba8-85e2740f97ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CAJLQkkbsPqgpVWqi%2BdV4cg6OmhTbbJr--AvXtiKpDa6J9nm%2BNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment