[Fixed]-How to read parameters from request in django

1πŸ‘

βœ…

To so this you need to capture this in the urls.

You will need to look into the django url dispatcher this page has pretty much everything you need to get started. Take your time, learn and then implement.

Maybe something like:

from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^request/(?P<id>\d+)/$', 'appname.views.my_request_view'),
]

views.py

def my_request_view(request, id):
    ... # logic goes here
πŸ‘€Matt Seymour

Leave a comment