Skip to content
Discussion options

You must be logged in to vote

Form rendering is currently handled in the project itself (rather than within django-bridge).

In the project template, there is this class which represents Django forms in the frontend and provides a .render() method: https://github.com/django-bridge/create-django-bridge/blob/6d476fed83ab1bdc82346914ce897c21befa9313/template/client/src/adapters/Form.tsx#L27

You can customise this code to render the form and its fields how you like. The widgets themselves usually have their own separate classes which you can customise. In the project template, these are located in the client/src/adapters/ folder.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kaedroho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants