Sunday, February 2, 2020

Re: want to create multiple tables for the same app in Django

You must be trolling... 
On Mon, 3 Feb 2020, 9:55 am Pawan Kumar, <pawan.kda@gmail.com> wrote:
Thanks Team,

Definitely i am able to create multiple tables using models . 
But I was planning to implement a solution with following scenario--

I have 16 different tables & these can be rendered to multiple html pages .
Is it possible to render particular table on single page dynamically , means if i click on particular href link  a particular table is fetched . 


warm regards
Pawan kumar

On Thursday, January 30, 2020 at 4:05:05 PM UTC+5:30, maninder singh Kumar wrote:
Write as many models for tables reqd in db
What is the problem you are facing ?
Could it be the tables don't appear in all HTML!

Sent from my iPad

On 29-Jan-2020, at 9:32 PM, Pawan Kumar <pawa...@gmail.com> wrote:

Hi Team,

I want to create multiple tables for the same app in Django & data from these tables is required to be shown in multiple html pages . 
My existing table using models.py is  ...


from django.db import models
# Create your models here.

class IAM(models.Model):
    node = models.CharField(max_length=50)
    status = models.CharField(max_length=50)
    component = models.CharField(max_length=100)
    dbversion = models.CharField(max_length=50)
    version_no = models.CharField(max_length=50)
    dbversion = models.CharField(max_length=50)
    def __str__(self):
        return self.component

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4a302377-62eb-4de7-a451-caf58f46d41d%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a0d839f5-0a64-447c-918e-6198d267e81c%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcGG6ny7h-5G9CC91by%3DZkpy3XXUHVt9XRJWRucBpG_9_Q%40mail.gmail.com.

No comments:

Post a Comment