V
V
Vlad Rodionov2021-12-19 03:02:37
Django
Vlad Rodionov, 2021-12-19 03:02:37

Is it possible to store a string in a database field and then parse it?

Is it correct to store a string of this kind in a database field? And then parse it? Or do I need to create a connection, if so, what kind? ManyToMany or another?
runner,rerun,overrun,run,running,runny,outrun

class Fams(models.Model):
    word_fams = models.TextField(blank=True, null=True)

class Word(models.Model):
    word_en = models.TextField(unique=True)
    example = models.ManyToManyField(Example, blank=True)
    fams = models.ManyToManyField(Fams,blank=True)


word_fams is the field where you want to store the string

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question