Skip to content

Fix HR_Interface to point to React index HTML#39

Open
nkzarrabi wants to merge 1 commit intomainfrom
fix-react-index-html
Open

Fix HR_Interface to point to React index HTML#39
nkzarrabi wants to merge 1 commit intomainfrom
fix-react-index-html

Conversation

@nkzarrabi
Copy link
Owner

@nkzarrabi nkzarrabi commented Nov 9, 2024

Fixes #36

Update HR interface to point to React index HTML.

  • Modify EmploymentAssessment/settings.py to add BASE_DIR / 'react_app/build' to the TEMPLATES DIRS list.
  • Modify EmploymentAssessment/urls.py to add a new path for the React app and import TemplateView from django.views.generic.
  • Modify hr_dashboard/views.py to update the hr_interface view to render the React index HTML.
  • Delete hr_dashboard/templates/hr_dashboard/index.html.

For more details, open the Copilot Workspace session.

Fixes #36

Update HR interface to point to React index HTML.

* Modify `EmploymentAssessment/settings.py` to add `BASE_DIR / 'react_app/build'` to the `TEMPLATES` `DIRS` list.
* Modify `EmploymentAssessment/urls.py` to add a new path for the React app and import `TemplateView` from `django.views.generic`.
* Modify `hr_dashboard/views.py` to update the `hr_interface` view to render the React index HTML.
* Delete `hr_dashboard/templates/hr_dashboard/index.html`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/nkzarrabi/Employment-Assessment/issues/36?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HR_Interface still seems to point to django rather than react index html

1 participant