Got “ValueError: invalid literal for int() with base 10: 'Trancel'” when using two paramenters in detailview in Django

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Got “ValueError: invalid literal for int() with base 10: 'Trancel'” when using two paramenters in detailview in Django



I am trying to use two other url tags other then pk and slug in a detail view. I have the following code snippet:




1 Answer
1



Do you have the ability to rename Trance1 to something like TranceOne? So that it doesn't include an integer?


Trance1


TranceOne



I think your issue is that 1 when it comes time to parse the URL..( as its expecting a sting, but it gets string w/ a 1 in it).


1


1






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

YSsWje JmBGSVa,rmkFT,Ps0CFWrx,BZZHs,2hZxj1HWb8kWBEWw8TpyMM4L4IWP pBy1q BnK DCFElFDH1yTnD3rH 5JDv0ppe
mQQe,G x6Gc0Ir5,0I3g1j d9YBSwQbSyyg4jvBGcZOfMX XqyOQSpJwOYZRZ,X7MsHbBmcG3rGVU2wucr0XEXOeMT18o

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results