sufiyan
ride=Ride.objects.filter(customer_id=request.user.id)
cusotmer_ride=ride.values('id')
print(cusotmer_ride)
return cusotmer_ride
sufiyan
with this i'm able to get all the ride id created by customer but how can i update this ride id in to customer ride_id
sufiyan
do i need to use signals?
sufiyan
How, I'm not getting this part
sufiyan
Please help me brother
null
Customer.objects.filter(user=request.user).update(ride_id=list)
User
How can I get a verbose name of each object from my model in a template?
gh
pls. I want example about DB firest in postgrsql for creat tables and then use django
No
Is there any way to connect django and scrapy
Paul
Maxim
Faizan
Yes actually even I wanted to ask this question
Faizan
Is there a way to Inherit spider in views.py
Faizan
I want to build a web app which will fetch email ids
Faizan
Available on the internet
No
Wow.... Whats a techie person you are....
Mr Moha
just started my first day in django and things are going as planned i appreciate you guys for setting up this room
Tура
hello! Guys I have a User model and two differnet type of user choises, I did overrride allauth SignpForm, but when I use social apps to sign in, the default user type is not changing, could you help me plz, to override social login signup form
Tура
I can not find any source
Stéphane P
Nasir Ahmad
I want to send email with Django, but Google has disabled the less secure app option, so what should I do to be able to send email?
Anonymous
Zidni Zainul
excuse me, how to convert this sql query to django query?
SELECT COUNT(*) FROM management_stock
WHERE stockCount < minStock
my code Stock.objects.all().filter(stockCount__lt=minStock) was error
thanks
Yameen
Yameen
1. Please check your models for the same name.. I mean check whether it is defined or not.
2. Have you performed migration?
Zidni Zainul
noob
Hello everyone
I am working with a blog app in which i have to check if user liked the blog or not
I am new to django can anyone help??
Doragonsureiyā
Sukha
Hello, i have problem with uwsgi to install in my django, does someone know how to install uwsgi in django?
Sukha
I have an error when intall uwsgi
Ani
Avii
Need some help
Quieres bailar
Is there any major security concern we should be aware of before deployment (using Django)?
Quieres bailar
Or does Django deal with everything?
noob
Hi guys,
I am working with django and react when i am using Postman apis are working properly but when i am using react to call the server then nothing logs and it shows network in react console
Can anyone please help??
Doragonsureiyā
Need some help
No one can help you until you explain your difficulties.
Ani
Nazim
noob
I don't think it's a cors error because when i call the hosted server then it works properly,
Getting this problem only while running both frontend and backend in local
Sergey
Hi guys! Is there a way to clone model objects (create new one as copy of exited) if we have m2m and fk fields in it? How to do it properly? Im stuck on tuning speed. It becomes slower on bigger valume (count) of objects. So what can I do? E.g on 150 i have speed 4 obj/sec, on 3000 1.5 obj/sec
Neeraj
Hello guys! I want to count the total number of update and delete in crud app how can I do please help
Arslan
Hello everyone, now I'm doing factories and stumbled upon such a problem, I need the "phone" field to be unique, I can't find how to implement it, who can help ??? Here is my field phone = factory.Sequence(lambda n: factory_en.phone_number()) My import: import factory
from factory import fuzzy
from faker import Factory
from core import models, consts
from road import factories
factory_en = Factory.create('en_EN')
Saddam
Hello guys I have built django api with CRUD operations ... crud operations is successful running but i have doubt... How to display this data to user in fronted
.. And how to implement all crud operations from fronted?
Pls suggest me where I have to learn about this
Nazim
Nazim
Mohamad
How do I know who is the author of the post?
Nazim
Saddam
Kk
Vova
Hi! I`m trying to start asgi\channels project, but it`s starting as WSGI. Could anyone help me?
Vova
Channels are in installed apps and channel layer is configured
Vova
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'metawars.settings')
from django.core.asgi import get_asgi_application
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
asgi_app = get_asgi_application()
from main.routing import websocket_urlpatterns
application = ProtocolTypeRouter({
'http': asgi_app,
'websocket': AuthMiddlewareStack(
URLRouter(
websocket_urlpatterns
)
)
})
Vova
asgi.py'
Vova
File asgi.py is even not running
Eli
Hi, I can call of table in sql server by filter some parameters but now, How can i define class in model according to one view in database and call with filtering?
So thanks.
Mahmood
Hi everyone,
I want to ask
If i have a package that needed the APP_DIRS (in the TEMPLATES) to be set to True, and another package needed it to set to false,
What i should do in this situation 😕
Rachit
Hey team,
I need help in my project
Cannot connect css to my html in my django Project
Please Help me. .
Mahmood
Eli
balaji
how to slove this error
balaji
module not found error no module named
gadghimuradm
Nasib
Hello, how to block user after 3 login attempts
Nasib
I can't do that with BruteBuster
Sukhmanjeet
Charly
Sukhmanjeet
This is all what is being shown in the build logs
Charly
Sukhmanjeet
this was a bit above of the end