Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django get data from query parameter

#In views.py file:
def get_param(request, param):
    my_parameter = param
    
#In urls.py
path('test/<param>', views.get_param, name='get_param'),

#Then ypu can access with the url: http://localhost:8000/test/test_param
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #data #query #parameter
ADD COMMENT
Topic
Name
9+3 =