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

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.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

'Series' object is not callable Error / Statsmodels illegal variable name