Django 1.9 to 1.10 raises NoReverseMatch: u'en-gb' is not a registered namespace

后端 未结 5 1611
谎友^
谎友^ 2021-01-18 03:51

I am trying to update my 1.9 application to 1.10 and I am getting the following error on running all my unit tests:

Traceback (most recent call last):   File         


        
5条回答
  •  星月不相逢
    2021-01-18 04:00

    It could be that your base urls.py has an included urls.py that has a $ sign mistakenly put into it. This will cause issues with the urlresolvers. Scan your included urls and make sure that there are no dollar signs in them.

    Another thing to look out for is if you have any views that throw exceptions in any of your urls.

提交回复
热议问题