You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started to do some work on it, but I found myself stack when serving the index file.
I've managed to configure angular with the internationalization support, and manage to overwrite temporarily the index which gets server, however all the links are broken, even though the basehref is in the html.
For testing I've modified the backend/config/urls.py with the following:
127.0.0.1/:6
GET http://127.0.0.1:8000/static///demo.productionready.io/main.css net::ERR_ABORTED 404 (Not Found)Understand this errorAI
127.0.0.1/:6
GET http://127.0.0.1:8000/static///code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css net::ERR_ABORTED 404 (Not Found)Understand this errorAI
127.0.0.1/:9
GET http://127.0.0.1:8000/static/polyfills-PLLVDC6G.js net::ERR_ABORTED 404 (Not Found)Understand this errorAI
127.0.0.1/:6
GET http://127.0.0.1:8000/static/styles-QCLDF5H7.css net::ERR_ABORTED 404 (Not Found)Understand this errorAI
127.0.0.1/:9
GET http://127.0.0.1:8000/static/main-TZHE2ZAM.js net::ERR_ABORTED 404 (Not Found)Understand this errorAI
127.0.0.1/:1 The resource http://127.0.0.1:8000/static///demo.productionready.io/main.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.Understand this warningAI
127.0.0.1/:1 The resource http://127.0.0.1:8000/static///code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
Do you know what I'm doing wrong?
Happy to contribute as PR to the repo, once I've got this working (Or I can still make a PR to the repo, if it helps moving this forward)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I was wondering if it would be possible to extend the realworld example of django _ angular (https://github.com/thanhdev/realworld-django-rest-framework-angular?tab=readme-ov-file) with the internationalization support.
I started to do some work on it, but I found myself stack when serving the index file.
I've managed to configure angular with the internationalization support, and manage to overwrite temporarily the index which gets server, however all the links are broken, even though the basehref is in the html.
For testing I've modified the
backend/config/urls.py
with the following:I get two produced folder (I am testing with an additional it locale):
And all the files are properly populated in the folder:
This is the produced html
but these are the errors I get on the console:
Do you know what I'm doing wrong?
Happy to contribute as PR to the repo, once I've got this working (Or I can still make a PR to the repo, if it helps moving this forward)
Beta Was this translation helpful? Give feedback.
All reactions