iam oassing an interger valu from browser to the path using<int:value> but 
it is  showing as an error not an intege
Environment:


Request Method: GET
Request URL: http://localhost:8000/hello/2

Django Version: 2.1.7
Python Version: 3.7.2
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback:

File "C:\Users\sai charan 
tej\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\exception.py"
 
in inner
  34.             response = get_response(request)

File "C:\Users\sai charan 
tej\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py"
 
in _get_response
  126.                 response = self.process_exception_by_middleware(e, 
request)

File "C:\Users\sai charan 
tej\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py"
 
in _get_response
  124.                 response = wrapped_callback(request, *callback_args, 
**callback_kwargs)

Exception Type: TypeError at /hello/2
Exception Value: hello() got an unexpected keyword argument 'int'
r

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/8ae35e9d-5e8d-4d5a-b386-935ab6af0753%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to