I am having problems in production with my django project. It raises 'Matching query does not exist'. In my localhost works perfect, the error is only in my server.
The line with the error is a query
sub_obj = Sub.objects.get(name=name)
I cannot access the model by 'id' in this case because the view gets that parameter from the template via href:
<a href="/pr/sub/{{s.name}}">{{s.name}}</a>
This error occurs when the name has blank spaces, for example name='My Name'. Can this have something to do with the server ? Is possible to be getting this error with parameters separated by blanks ? or could be something else ?
The url for this view is
url(r'^pr/sub/(?P<nname>.*)', show_only_sub),