Anonymous
<body> <div class="container"> <div id="demo" class="carousel slide" data-ride="carousel"> <ul class="carousel-indicators"> <li data-target="#demo" data-slide-to="0" class="active"></li> {% for i in range%} <li data-target="#demo" data-slide-to="{{i}}"></li> {% endfor %} </ul> <!--slide show starts here--> <div class="container carousel-inner no-padding"> <div class="coursel-item active"> <div class="col-xs-3 col-sm-3 col-md-3" > <div class="card" style="width: 18rem;"> <img src="{{prooduct.0.image}}" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">{{prooduct.0.book_name}}</h5> <p class="card-text">{{prooduct.0.author}}</p> <a href="#" class="btn btn-primary">add to cart</a> </div> </div> </div> {% for i in product|slice:"1:"%} <div class="col-xs-3 col-sm-3 col-md-3" > <div class="card" style="width: 18rem;"> <img src="{{i.image}}" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title" style="color:black;">{{i.book_name}}</h5> <p class="card-text" style="color:black;">{{i.author}}</p> <a href="#" class="btn btn-primary">Add to cart</a> </div> </div> </div> {% if forloop.cpunter|divisibleby:3 and forloop.counter > 0 and not forloop.last %} </div><div class="carousel_item"> {% endif %} {% endfor %} </div> </div> <!--controls --> <a class="carousel-control-prev" href="#demo" data-slide="prev"> <span class="carousel-control-prev-icon"></span> </a> <a class="carousel-control-next" href="#demo" data-slide="next"> <span class="carousel-control-next-icon"></span> </a> {% endblock %} </div> </div> </body>
Dis is which language c r c++
Anonymous
R html 🤔
Anonymous
R html 🤔
Yes bootstrap
Anonymous
Ohk
ishak
I think that was right. ManyToMany relationship, primary key for each model become foreign key in related model.
Uhh sorry, it's my wrong. Actually I've been wanting to ask: Which app is better for put that model inside.
ishak
My images are not displaying on the web page someone have any solution?
prooduct.0.image is giving the image relative path. You need the image' url as prooduct.0.image.url. That add media path to absolute path.
ishak
Thnkx alot it helps😊😊😊
you're welcome :)
Дмитрий
Hi! Please, tell me how to do the calculation in the "volume" field by default "self.currense * self.usd_rate" https://hastebin.com/racaxomofe.py
Gaurav
https://pastebin.com/LaR5sgQm
Gaurav
https://pastebin.com/LaR5sgQm
please, somebody help🙏🙏
Gaurav
models.py here 👉 https://pastebin.com/0gmV8SLz
Marko
hi how to print logs to django console always it sometimes print sometimes not ?
Mirco
You don't have the url
Xavier
u sure u have a function or url path named 'login'?
Xavier
that's a capital letter L ogin
Xavier
and u are redirecting to smol letter l ogin replace that redirect with: return redirect('Login')
Shihasz
There is no path named login in ur urls.py which u r trying to redirect.
Ninja
Wht type of method u r using class based or function based
Ninja
Give /after register and login
Ninja
Then u r giving something wrong in views.py
Anonymous
Hey guys, I want to learn to make backend for mobile apps. I have no interest in learning website development. Is it necessary to learn django web stuffs before I move to DRF?
Mr
Hey guys, I want to learn to make backend for mobile apps. I have no interest in learning website development. Is it necessary to learn django web stuffs before I move to DRF?
Most of the tutorials that are on DRF assume that you're already familiar with Django and that might be a bit problem .... just get basic idea and that would be enough
Anonymous
Alright thanks
Anonymous
Ant can write a content in Nepali if possible please tell me
Anonymous
hi, guys! i'd ask you about a virtual environment. could you tell me which part is first : attach the venv or create django project and then set the venv
Anonymous
,
Anonymous
?
Anonymous
ok, then i will create django project inside of that venv ?
Mirco
You have to add trailing slash and please don't use url capitalized
π
Hi everyone
Anonymous
hey, I have two models
Anonymous
one model has manytomanyfield refereing to 2 model and manytomanyfield in 2 model refering to 1 model
Anonymous
is it possible to do such thing?
Anonymous
Is there any package that may help in live streaming videos in django ?
George
Anonymous
Anonymous
I search a lot but I'm unable to find
π
I am grateful to be able to join a Django community I am new to django yesterday I created a model run server and connected to a database. after migrating I checked my database table and table was only created for id & roll_no
Anonymous
Can anyone help me how to create Chatbot using Django
Anonymous
Can you send link
π
when i check the models.py in text editor i realized my others variables didn't indent properly
Anonymous
Can anyone help me how to create Chatbot using Django
https://djangopackages.org/grids/g/chatbots/
George
Can you send link
Let me 🦆 DuckDuckGo that for you: 🔎 django channels
Anonymous
Thanks👍
George
George
This chart is old, and unupdated
George
chatterbot supports python3.6 and django 2
π
I fixed it and run migration again and got non nullable error
Anonymous
Seems no one supports python3
Yeah it not support python 3
π
I am grateful to be able to join a Django community I am new to Django yesterday I created a model, then runserver and connected to a database. after migrating I checked my database table and table was only created for id & roll_no when i checked the models.py in text editor i realized my other variables didn't indent properly I fixed it and run migration again and got non nullable error can anybody help me?
Sweetie
Is there something like django-autocomplete-light for normal forms? django-autocomplete-light seems to be a nice package but primarily focused on admin end. I want to give users similar functionality in frontend forms
π
You have to use Django model field
like "from django.db import models"??
π
'Field.null?'
Aman
Is it Good idea to create restapi for use Android app in django.
_dvd
https://pastebin.com/fuftENGn I'm trying to test a custom action function inside a ModelViewSet. I keep getting the following error TypeError: reverse_action() missing 1 required positional argument: 'self'
_dvd
https://pastebin.com/fuftENGn I'm trying to test a custom action function inside a ModelViewSet. I keep getting the following error TypeError: reverse_action() missing 1 required positional argument: 'self'
I don't understand how reverse_action() works in the guide https://www.django-rest-framework.org/api-guide/viewsets/#reversing-action-urls while it doesn't in my code
George
nuts
Lone
XAMPP and django?????
wat would you prefer??
George
wat would you prefer??
i think Xampp is for apache based servers and you cant use that for django
George
https://stackoverflow.com/questions/1000444/host-django-with-xampp-on-windows
George
lol...i get now thanks
it doesn't make any sense
Lone
it doesn't make any sense
wat doesn't make any sense???
George
Lone
after u login or before you login??....
Lone
the login route is incorrect...the route specified on the submit form does not match any of the routes in telusko.url
Lone
The current path, accounts/Login/Login,...and the login route is accounts/ Login/ [name='Login'] ...check out your routes