django-js-reverse icon indicating copy to clipboard operation
django-js-reverse copied to clipboard

Usage as static file does not work with multiple languages

Open vladlep opened this issue 7 years ago • 2 comments

Hi,

I upgrade the library to the latest to use the ./manage.py collectstatic_js_reverse and load the static file on our servers which is a great feature. Unfortunately it does not work for us. If we load the generated file the Urls contain None instead of the language code: http://localhost:8000/None/api/v2/costs/

If we used the old cached view loading of the lib it works. http://localhost:8000/en/api/v2/costs/ or http://localhost:8000/nl/api/v2/costs/ depending on the language of the user.

Are there some configs that i am missing?

Thanks, Vlad

vladlep avatar Apr 05 '17 15:04 vladlep

Hello Vlad, did you solved the issue?

ierror avatar Dec 17 '17 18:12 ierror

Hi,

I solved it a while ago but was a bit custom for our case. Did not consider if this way will work in other cases. You can see here the commits I made: https://github.com/vladlep/django-js-reverse/commits/develop

vladlep avatar Dec 20 '17 20:12 vladlep