Re: display data

2020-03-03 Thread Perceval Maturure
Hi Naveen. Yes, that’s correct, I want to display the first 6 according to date. Each record has to be in its own cell using a bootstrap 2 row and 3 column table. Regards > On 4 Mar 2020, at 08:53, Naveen Arora wrote: > > So you want to display data from this model to six cards, b

Re: display data

2020-03-03 Thread Naveen Arora
So you want to display data from this model to six cards, but how..i mean each row can be said as "one data" so you want to display 6 rows of this table basically on 6 rows. Another question is how you want to filter the data, first 6 rows according to date, etc. ? if you want to dis

Re: display data

2020-03-03 Thread Perceval Maturure
m > is there anyone who has tried to display data from a table to six different > cards, when another record is added the first initialy is replaced ? > regards > > > -- > Perceval Maturure > 083 303 9423 > > > -- > You received this message because you ar

Re: display data

2020-03-03 Thread Naveen Arora
Hi, Can you explain what you are trying to achieve clearly.? Regards Naveen Arora On Sunday, 1 March 2020 19:06:02 UTC+5:30, Perceval Maturure wrote: > > Hi Team > is there anyone who has tried to display data from a table to six > different cards, when another record is add

Re: display data

2020-03-01 Thread Kushal Neupane
Search render tag On Sun, Mar 1, 2020, 19:20 Perceval Maturure wrote: > Hi Team > is there anyone who has tried to display data from a table to six > different cards, when another record is added the first initialy is > replaced ? > regards > > > -- > *Perceval

display data

2020-03-01 Thread Perceval Maturure
Hi Team is there anyone who has tried to display data from a table to six different cards, when another record is added the first initialy is replaced ? regards -- *Perceval Maturure* *083 303 9423* -- You received this message because you are subscribed to the Google Groups "Django

Re: Display data from the news api json

2019-05-23 Thread Enderson Menezes
If you have the api running, and in the browser you get the display of your data. Your problem is not about django is about a language or a framework to program mobile. Em quinta-feira, 23 de maio de 2019 10:06:12 UTC-3, Thiago brayo escreveu: > > I have been using the news api to fetch articles

Display data from the news api json

2019-05-23 Thread Thiago brayo
I have been using the news api to fetch articles. Have the json data but I cant seem to figure out how to display it on my app. Any help will be appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and st

Re: Can't display data from app in flatpages

2012-12-20 Thread Jason Arnst-Goodrich
The flatpages view is not provided the context which includes 'posts'. IMO you are correct with the {% load posts %} technique because it is entirely as result of the template you are using that requires you display that information -- if that makes sense. In other words it's not because of the

Can't display data from app in flatpages

2012-12-19 Thread Frank Valcarcel
I have a Django app called blogengine which does exactly what the name implies. I can't seem to get data from blogengine (posts) to display in templates when they're called by flatpages. I'm new to Django but I assume this is a urls.py issue. My urls.py: from django.conf.urls.defaults import p

Check list it's presented in other list and display data.

2009-10-06 Thread veasna bunhor
Dear Django developers, Here is my problem: author_A = [['book_x',1,10],['book_y',2,20],['book_z',3,30]] author_B = [['book_s',5,10],['book_t',2,20],['book_z',3,30]] author_A AND author_B = ['book_z',3,30] author_A = [['book_x',1,10],['book_y',2,20]] author_B = [['book_

Re: Display Data From Multiple Tables

2009-07-02 Thread AmanKow
On Jul 2, 10:25 am, The Danny Bos wrote: > DR. > Bingo!! > > Thanks man, > And thanks for the tip on "_set" being for ForeignKeys. > > d > > On Jul 3, 12:23 am, Daniel Roseman wrote: > > > On Jul 2, 3:20 pm, The Danny Bos wrote:> Daniel, > > > > {% for author in review.item.author_set.all %} >

Re: Display Data From Multiple Tables

2009-07-02 Thread TiNo
> > TINo, no errors at all, it just doesn't display. Wat doesn't display? The publisher name? The authors? > > Agreed it is a ManyToMany type. Am thinking perhaps a ForeignKey type > may work just fine. Any reason you guys can think of that an Author > field should be a ManyToMany? > Depends.

Re: Display Data From Multiple Tables

2009-07-02 Thread The Danny Bos
Daniel, {% for author in review.item.author_set.all %} Is what I've been using. TINo, no errors at all, it just doesn't display. Agreed it is a ManyToMany type. Am thinking perhaps a ForeignKey type may work just fine. Any reason you guys can think of that an Author field should be a ManyToMany?

Re: Display Data From Multiple Tables

2009-07-02 Thread The Danny Bos
DR. Bingo!! Thanks man, And thanks for the tip on "_set" being for ForeignKeys. d On Jul 3, 12:23 am, Daniel Roseman wrote: > On Jul 2, 3:20 pm, The Danny Bos wrote:> Daniel, > > > {% for author in review.item.author_set.all %} > > Is what I've been using. > > Aargh, copy and paste fail. S

Re: Display Data From Multiple Tables

2009-07-02 Thread Daniel Roseman
On Jul 2, 3:20 pm, The Danny Bos wrote: > Daniel, > > {% for author in review.item.author_set.all %} > Is what I've been using. > Aargh, copy and paste fail. Should have been {% for author in review.item.authors.all %} -- DR. --~--~-~--~~~---~--~~ You received this

Re: Display Data From Multiple Tables

2009-07-02 Thread Daniel Roseman
On Jul 2, 2:55 pm, The Danny Bos wrote: > K, I think I have it. > > Just having trouble getting the Author loop from within my Review > set. > Here's what I have below, I figured this was pretty close but I'm > wrong aren't I? > >         {% for review in reviews_full %} >                 {{ revi

Re: Display Data From Multiple Tables

2009-07-02 Thread TiNo
On Thu, Jul 2, 2009 at 15:55, The Danny Bos wrote: > Just having trouble getting the Author loop from within my Review > set. > Here's what I have below, I figured this was pretty close but I'm > wrong aren't I? Does it give you any errors? >{% for review in reviews_full %} >

Re: Display Data From Multiple Tables

2009-07-02 Thread The Danny Bos
K, I think I have it. Just having trouble getting the Author loop from within my Review set. Here's what I have below, I figured this was pretty close but I'm wrong aren't I? {% for review in reviews_full %} {{ review.item.title }} {{ review.item.publisher

Re: Display Data From Multiple Tables

2009-07-02 Thread Alex Robbins
You should take a look at select_related[1]. It will take the lot of queries TiNo was talking about and flatten it down to one big one. [1] http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4 Hope that helps, Alex On Jul 1, 1:34 pm, TiNo wrote: > On Wed, Jul 1, 2009 at 16:59, The Da

Re: Display Data From Multiple Tables

2009-07-01 Thread TiNo
On Wed, Jul 1, 2009 at 16:59, The Danny Bos wrote: > > Hi there, > > Seems easy, but I'm having an ass of a time. I think once I wrap my > head around how to do this, I'll be rolling through Django like it's > building sprites on a Commodore 64. > > So, I have four tables. Book, Publisher, Author

Display Data From Multiple Tables

2009-07-01 Thread The Danny Bos
Hi there, Seems easy, but I'm having an ass of a time. I think once I wrap my head around how to do this, I'll be rolling through Django like it's building sprites on a Commodore 64. So, I have four tables. Book, Publisher, Author and Review. A classic scenario. I want to display a loop on the h

Re: Can I use Django to display data form a legacy database?

2008-05-04 Thread Justin Bronn
> Thanks.  To be sure, when I do the python manage.py syncdb, that > doesn't alter my existing database does it?  What is syncdb doing in > this case? It is typically worth the effort to search the docs: http://www.djangoproject.com/documentation/django-admin/#syncdb Particularly, read the high

Re: Can I use Django to display data form a legacy database?

2008-05-04 Thread jmDesktop
On May 4, 12:22 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, May 3, 2008 at 11:55 PM, jmDesktop <[EMAIL PROTECTED]> wrote: > > > If all I want to do is display a row(s) from a legacy database, one > > that I did not create with Django and syncdb, will Django do that?  Do > > I have to

Re: Can I use Django to display data form a legacy database?

2008-05-03 Thread Karen Tracey
On Sat, May 3, 2008 at 11:55 PM, jmDesktop <[EMAIL PROTECTED]> wrote: > > If all I want to do is display a row(s) from a legacy database, one > that I did not create with Django and syncdb, will Django do that? Do > I have to alter my legacy database in any way (assume it's a pre- > existing MySQ

Can I use Django to display data form a legacy database?

2008-05-03 Thread jmDesktop
If all I want to do is display a row(s) from a legacy database, one that I did not create with Django and syncdb, will Django do that? Do I have to alter my legacy database in any way (assume it's a pre- existing MySQL, Oracle, or SQL Server database)? Thank you. --~--~-~--~~

Re: How to display data from a ManyToManyField in a template?

2007-05-06 Thread Jeremy Dunck
On 5/6/07, gsmith <[EMAIL PROTECTED]> wrote: ... > (r'^csi/rso/(minutes)/(\w{1,100})/$', > 'mysite.rso.views_rso.showminutespage'), > > / > > view > > def showminutespage(request, thetable, partitle): > thetabinfo = eval(thetable).objects.get(id=partitle) > return render_to

Re: How to display data from a ManyToManyField in a template?

2007-05-06 Thread gsmith
Malcolm, I tried you code but it's still not displaying any of the members for that minute instance. Below is the code for my url, view, model, and template url (r'^csi/rso/(minutes)/(\w{1,100})/$', 'mysite.rso.views_rso.showminutespage'), / view def showminutespage(request, thetable

Re: How to display data from a ManyToManyField in a template?

2007-05-06 Thread Malcolm Tredinnick
On Sun, 2007-05-06 at 13:46 -0700, gsmith wrote: > I have the following tables > > class members(models.Model): > title = models.CharField(maxlength=100) > names = models.CharField(maxlength=100) > email = models.EmailField() > city = models.CharField(maxlength=100) > state =

How to display data from a ManyToManyField in a template?

2007-05-06 Thread gsmith
I have the following tables class members(models.Model): title = models.CharField(maxlength=100) names = models.CharField(maxlength=100) email = models.EmailField() city = models.CharField(maxlength=100) state = models.USStateField() image = models.ImageField(upload_to='c: