Wednesday, September 26, 2018

what's args parameter in reverse()


what's the useful form args=''1" here and why use 1 not anything else 
def test_post_update_view(self):
        response = self.client.post(reverse('post_edit',args='1'),{
        'title':'Updated title',
        'body':'Updated text',
        })Enter code here...


--
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/e9ede35d-8f96-4100-9193-af701e6372ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment