Noreversematch Error When Running Tests In Django
i'm using python django i had error while running the tests.py what does that mean : Traceback (most recent call last): File '/home/hala/Desktop/lasting/sharesoft-13/project/ta
Solution 1:
It means that Django was unable to find a route which would match that particular path name and arguments, and thus was unable to generate a URL by reversing the route.
Perhaps adingcomment
was a typo, and should have been addingcomment
instead?
Solution 2:
The reverse('adingcomment', kwargs={'post_id' : 1, 'content':'hjhgh'})
failed to find a URL route.
Perhaps you registered a addingcomment
route instead? You need to check the name of the route and the provided arguments to match an existing route you registered. For more details see the Reverse resolution of URLs documentation.
Post a Comment for "Noreversematch Error When Running Tests In Django"