skip to Main Content

How to make a nested dict (json) from a schema database xml?

Here is my input file.xml : <?xml version="1.0" encoding="UTF-8" ?> <project name="so_project" id="Project-9999"> <schema name="database1"> <table name="table1"> <column name="foo" type="int"/> <column name="bar" type="string"/> <column name="details_resolution" type="array[object]"> <column name="timestamp" type="timestamp"/> <column name="user_id" type="string"/> <column name="user_name" type="string"/> </column> <column name="details_closure" type="array[object]"> <column…

VIEW QUESTION

Html – Django Template how to get the value of a model through the OneToOneField

In my Django App i have Two Models and the User model from django.contrib.auth.models from django.contrib.auth.models import User class Room(models.Model): host = models.ForeignKey(User, on_delete=models.CASCADE, null=True) topic = models.ForeignKey(Topic, on_delete=models.SET_NULL, null=True) name = models.CharField(max_length=200) description = models.TextField(null = True, blank =…

VIEW QUESTION
Back To Top
Search