marcelovicentegc / django-react-typescript

This is a non-opinionated Django 5 + React 18 boilerplate built with great development experience and easy deployment in mind.
MIT License
362 stars 65 forks source link

Page Rendering Issue #8

Closed gilbertk422 closed 2 months ago

gilbertk422 commented 3 years ago

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

marcelovicentegc commented 3 years ago

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 commented 2 months ago

Hi there @gilbertk422 :wave: ! just to let you know that I'm revisiting this project and I've got rid of this template engine code while upgrading Django and React :wink: