How the URL looks like
http://<IP_ADDR>:<PORT>/api/post/<POST_NUMBER>
Here the POST_NUMBER is dynamic, how to send a request to the Page like this http://127.0.0.1:8080/api/post/14 Where 14 is the post number Here is my URL Pattern
path('api/post/<int>', views.PostView, name="Post")
Here is the PostView
def PostView(request,POST_NUMBER = 0):
print(POST_NUMBER)
My error is PostView() got an unexpected keyword 'int'