Friends, I searched a lot and couldn't find it, so I decided to ask here.
I need to create a form on a page made in Django (Python), that it will create a file based on a "skeleton" Python code and change only the specific fields that I put in bold and save the same.
Follows the code "skeleton".
@staticmethod
def required_slots (tracker: Tracker) -> List [Text]:
** Field1 ** = []
@staticmethod
def required_slots (tracker: Tracker) -> List [Text]:
** Field2 ** = []
@staticmethod
def required_slots (tracker: Tracker) -> List [Text]:
** Field3 ** = []
I will create a page with a form with the fields: Field1, Field2 and Field3 and they will be filled with the following information:
Field1 = Name Field2 = Age Field3 = Sex
The generated skeleton code should look like this:
@staticmethod
def required_slots (tracker: Tracker) -> List [Text]:
** Name ** = []
@staticmethod
def required_slots (tracker: Tracker) -> List [Text]:
** Age ** = []
@staticmethod
def required_slots (tracker: Tracker) -> List [Text]:
** Sex ** = []
Could someone give me a way of how to make?