-
Notifications
You must be signed in to change notification settings - Fork 20
NoReverseMatch: Reverse for 'set_language' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] #5
Comments
I found a workaround to this issue by adding these lines to the urls.py:
|
This doesn't seem to be related to this project. I just did a quick search on the project and none of the templates actually do a reverse lookup of The workaround you suggested above is actually the proposed way in the docs to enable switching between different languages which is used in Oscar. I'm not quite sure if the docs in Oscar mention that explicitly or not but if they don't I'd suggest filing an issue there. I hope that makes sense. |
The reason that I mention this is because the first-time user experience for someone trying out django-oscar-mws, they are likely to run into this problem. I realize that it's a change in Django Oscar that has caused the error, but if your sandbox app is not pinning a particular version of Oscar, then it might be a good idea to keep the sandbox app working well with the latest version of Oscar. In other words, I wouldn't expect someone trying out django-oscar-mws, to have to troubleshoot this error and modify the urls.py that ships with the sandbox app. |
You are absolutely right. I've added issue #7 to write some docs preventing others from running into issues. |
When I go to the homepage after running syncdb, migrate and runserver on the django-oscar-mws sandbox, I get the following error:
The text was updated successfully, but these errors were encountered: