django-react-typescript icon indicating copy to clipboard operation
django-react-typescript copied to clipboard

Page Rendering Issue

Open gilbertk422 opened this issue 4 years ago • 1 comments

I cloned project and followed all steps to run locally and it works well except template engine codes on index.html and didn't render correctly.

image

As you can see here, I see {% load static %} and missing resources which is loaded in template engine.

@marcelovicentegc could you figure this out? Thanks

gilbertk422 avatar Apr 27 '21 03:04 gilbertk422

Hi, @cesarrdz116! I'll take a look into that. Just FYI, once you run this in production the {% load static %} tag goes away because that template will be rendered by Django's template engine. You see this tag now because on dev mode React renders the page, and it doesn't know what to do with Django's template tags.

I have a solution on the back of my head and will work on that 😉 . Thanks, @cesarrdz116!

marcelovicentegc avatar Apr 27 '21 11:04 marcelovicentegc