Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django get admin url

>>> from django.urls import reverse
>>> c = Choice.objects.get(...)
>>> change_url = reverse('admin:polls_choice_change', args=(c.id,))
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #admin #url
ADD COMMENT
Topic
Name
9+1 =