Re: select records from a model in another django app

2019-07-31 Thread Marius Räsener
This can have several causes - f.e. did you add the ListView to your urls.py? is the import of the models working? (this implies to check your folder/module structure) Am Mittwoch, 31. Juli 2019 10:44:45 UTC+2 schrieb Perceval Maturure: > > Hi Marius > thanks for your input,i did remove the impo

Re: select records from a model in another django app

2019-07-31 Thread Perceval Maturure
Hi Marius thanks for your input,i did remove the import statements but nothing returned on my template surprisingly in another app the code is working. #view *from django.shortcuts import renderfrom django.views.generic import ListView, DetailView, View, TemplateViewfrom archivesuploads.models

Re: select records from a model in another django app

2019-07-30 Thread Marius Räsener
Hey Perceval, it seems like you have way too many import statements. something like this should be enough: from django.views.generic import ListView from .models import StaffDetail, PeopleDetail, StudentDetail class ArchivesuploadsListView(ListView): queryset = Archivesuploads.objects.all()

Re: select records from a model in another django app

2019-07-30 Thread Perceval Maturure
thanks for the response just to be more elaborative, here is my import code and view code. same code is working in the archivesuploads app but when i try to fetch the queryset in the other app it does not return records #import code from django.shortcuts import render from django.shortcuts import

Re: select records from a model in another django app

2019-07-30 Thread John Bagiliko
I stand to be corrected On Tue, Jul 30, 2019, 11:53 AM John Bagiliko wrote: > Import the model from the app of choice and use it as usual. > > On Tue, Jul 30, 2019, 11:32 AM Nitin Kumar > wrote: > >> Import another app model. >> >> On Tue, 30 Jul, 2019, 4:28 PM Perceval Maturure, >> wrote: >>

Re: select records from a model in another django app

2019-07-30 Thread John Bagiliko
Import the model from the app of choice and use it as usual. On Tue, Jul 30, 2019, 11:32 AM Nitin Kumar wrote: > Import another app model. > > On Tue, 30 Jul, 2019, 4:28 PM Perceval Maturure, > wrote: > >> i want to display model data using a class based view from another model >> in a differe

Re: select records from a model in another django app

2019-07-30 Thread Nitin Kumar
Import another app model. On Tue, 30 Jul, 2019, 4:28 PM Perceval Maturure, wrote: > i want to display model data using a class based view from another model > in a different app.any idead > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group.

select records from a model in another django app

2019-07-30 Thread Perceval Maturure
i want to display model data using a class based view from another model in a different app.any idead -- 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-us