How do I extract a part of the URL in HTML and display the error message?
Example: URL of my web page: file_upload/code/email/Invalid_File_Type/
.
I want to extract the message Invalid File Type to display the error. But how?
Using Django 1.4, I tried passing the error message from py file but couldn't get it to work for some reason :(