BrianRuizy / covid19-dashboard

🦠 Django + Plotly Coronavirus dashboard. Powerful data driven Python web-app, with an awesome UI. Contributions welcomed! Featured on 🕶Awesome-list
https://covid-dashboard.herokuapp.com
MIT License
213 stars 176 forks source link

Externalize header using Django template inheritance #17

Closed BrianRuizy closed 4 years ago

BrianRuizy commented 4 years ago

Externalize the four main-stats header using Django template inheritance, call it header.html, and place in layouts/ folder. So it's accessible on multiple pages, and the changes to the file will extend elsewhere instantiated.

Django documentation: https://docs.djangoproject.com/en/dev/ref/templates/language/#template-inheritance

Screen Shot 2020-04-28 at 4 04 33 PM

BrianRuizy commented 4 years ago

externalized main-stats header with Django Commit: https://github.com/BrianRuizy/covid-19-dashboard/commit/b61675271f4867eb72d36cd0b2192c23006c1363 @BrianRuizy