Hi everybody thank you for helping me throughout...
lastly do anyone know how to group by in django orm
or if i give a db query can anyone help me in changing it to django orm??
please
Thank you in advance
Amit Samanta
On Wed, 4 Sep, 2019, 7:50 PM Amit Samanta, wrote:
> Its done now.. thank
Its done now.. thank u everybody
Now i want to do that it will show only the latest book with detail of a
author
On Wed, 4 Sep, 2019, 6:07 PM Amit Samanta, wrote:
> i get all thank you for your help..
> the actuall funda is
> i have to show author name with related to that i have to show book
i get all thank you for your help..
the actuall funda is
i have to show author name with related to that i have to show books name
of the same author now the detail related to the books
this is wht i need
:-(
On Wed, 4 Sep, 2019, 6:01 PM Devdutt Bhati,
wrote:
> if you created table in models.py.
def getdetails(request11):
objs = Details.objects.all()
context = {'objs; : objs}
return render(request, 'full_path_of_template', context}
templates in which folders path should set in setting file. try this all
the best and revert me.
view.py :-
def getdetails(request):
template_nam
if you created table in models.py. you can import table at view file
like : from
appname .models import table/class name .
when you got the table data at views file then use it as
*variable=Tablename.objects.all()* now get all values in variable. it can
render in render function and use values at h
wiil get resolve the issue revert me.
On Wed, Sep 4, 2019 at 1:07 AM Devdutt Bhati
wrote:
> if you created table in models.py. you can import table at view file like
> : from appname .models import table/class name .
> when you got the table data at views file then use it as
> *variable=Tablena
by the above it is not giving any error but it is not showing the
correspondence names and also it is showing all the fields in detail :-((
please help
On Wed, 4 Sep, 2019, 4:10 PM Anirudh Jain,
wrote:
> Then simply use {{ obj.book_name.name }} in template where again, I am
> assuming 'name' is
Then simply use {{ obj.book_name.name }} in template where again, I am
assuming 'name' is the column name you have give to book name in Books model
On Wed, Sep 4, 2019 at 3:25 PM Amit Samanta wrote:
> You have gussed correctly..
> but i have taked book id as fk but i need the book name
>
> On We
You have gussed correctly..
but i have taked book id as fk but i need the book name
On Wed, 4 Sep, 2019, 2:41 PM Anirudh Jain,
wrote:
> This can be done easily if you make a proper view function and render data
> from it in template properly.
> A view function can be written like this :-
>
> Her
Also, I am not sure how you have written html code, so use it properly
according to your convinience.
On Wed, Sep 4, 2019 at 2:41 PM Anirudh Jain
wrote:
> This can be done easily if you make a proper view function and render data
> from it in template properly.
> A view function can be written l
This can be done easily if you make a proper view function and render data
from it in template properly.
A view function can be written like this :-
Here I am assuming that you want get the details of all the books/auuthors
at one page. If you want details of a particular book, then the following
i just need the veiw.py after this done i will try your tutorial
On Wed, 4 Sep, 2019, 1:34 PM Lim Kai Wey, wrote:
> Hey Amit,
>
> I suggest you to follow this tutorial to build your project,
>
> https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
>
>
Hey Amit,
I suggest you to follow this tutorial to build your project,
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
It teaches you all the basics that you need to know from scratch, which in
my opinion will answer all the questions you're asking
now how can i get the name for author and details??
On Wed, 4 Sep, 2019, 10:25 AM Bhoopesh sisoudiya,
wrote:
> Hi Amit,
>
> You can use
> =≠=
> Book.objects.select_related(FK).select_related(FK). values (select column
> name which you want).all()
>
>
> Thanks
I want try is...
there will be a dashboard
which will show
Author name
all the books which the author written
details of the book published date , avout the book in the above format
On Wed, 4 Sep, 2019, 12:08 PM Anirudh Jain,
wrote:
> Could you please elaborate/be more clear about what you
Could you please elaborate/be more clear about what you are really trying
to do ?
On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, wrote:
> Hi Amit,
>
> You can use
> =≠=
> Book.objects.select_related(FK).select_related(FK). values (select column
> name which you
Hi Amit,
You can use
=≠=
Book.objects.select_related(FK).select_related(FK). values (select column
name which you want).all()
Thanks
Bhoopesh sisoudiya
On Wed, Sep 4, 2019, 9:38 AM Amit Samanta wrote:
> Hi,
>
> I need help i am not understanding the keyword
Hi,
I need help i am not understanding the keywords of joining and fetch value
in veiw.py
i have three tables in model.py
Table 1(Author) :
Table 2(books):
Table 3 (details):
FK of table1
FK of table2
Fk = foreign key
I have to just show
Author (author name) Books (dynamic) Books(a
18 matches
Mail list logo