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?
null
do i need to use signals?
you can update customer on the view
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
Is there any way to connect django and scrapy
If you asking that - surely not for you.
No
If you asking that - surely not for you.
Dude... It's for my own project dude
George
Is there any way to connect django and scrapy
Connect? It's just a library working from a web framework
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
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?
Nasir Ahmad
Enable it from Google
But Google is disabled the less secure app option
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
Zidni Zainul
What's the error code?
NameError: name 'minStock' is not defined
Yameen
1. Please check your models for the same name.. I mean check whether it is defined or not. 2. Have you performed migration?
Suryo Adhy Chandra
How can I get a verbose name of each object from my model in a template?
hello... just try to set the form in context. then you can use in tempate {{yourform_name.as_p}} or {{yourform_name.as_div}}
Zidni Zainul
1. Please check your models for the same name.. I mean check whether it is defined or not. 2. Have you performed migration?
i did migrated it n checked my model the issues is after stock_count__lt must be number not column name
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??
noob
No one can help you until you explain your difficulties.
I am not able to share the image of my models Can I send it personally to you you
Charly
I am not able to share the image of my models Can I send it personally to you you
You are talking to a bot Andf no, read the rules (rule 5) to know hot to share code
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
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.
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
Mohamad
How do I know who is the author of the post?
Saddam
Use js frameworks like vue, react, angular or jQuery
Can you suggest me any channel to connect django api with react front frame work
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. .
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.
Hi again, I wrote this code in model for useing for calling of view: class final_inc(models.Model):         tarikh=models.IntegerField()     khoroj=models.CharField(max_length=100) class view_final_inc(DbView):       tarikh=models.OneToOneField(final_inc, on_delete=models.DO_NOTHING)       khoroj=models.CharField(max_length=100)  
balaji
how to slove this error
balaji
module not found error no module named
Nasib
Hello, how to block user after 3 login attempts
Nasib
I can't do that with BruteBuster
Sukhmanjeet
remote:              psycopg/psycopgmodule.c: In function ‘psyco_is_main_interp’: remote:              psycopg/psycopgmodule.c:689:18: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’} remote:                689 |     while (interp->next) remote:                    |                  ^~ remote:              psycopg/psycopgmodule.c:690:24: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’} remote:                690 |         interp = interp->next; remote:                    |                        ^~ remote:              error: command '/usr/bin/gcc' failed with exit code 1 remote:              [end of output] remote:          remote:          note: This error originates from a subprocess, and is likely not a problem with pip. remote:        error: legacy-install-failure remote:        remote:        × Encountered error while trying to install package. remote:        ╰─> psycopg2 remote:        remote:        note: This is an issue with the package mentioned above, not pip. remote:        hint: See above for output from the failure. remote:  !     Push rejected, failed to compile Python app. remote: remote:  !     Push failed remote: Verifying deploy...
Sukhmanjeet
remote:              psycopg/psycopgmodule.c: In function ‘psyco_is_main_interp’: remote:              psycopg/psycopgmodule.c:689:18: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’} remote:                689 |     while (interp->next) remote:                    |                  ^~ remote:              psycopg/psycopgmodule.c:690:24: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’} remote:                690 |         interp = interp->next; remote:                    |                        ^~ remote:              error: command '/usr/bin/gcc' failed with exit code 1 remote:              [end of output] remote:          remote:          note: This error originates from a subprocess, and is likely not a problem with pip. remote:        error: legacy-install-failure remote:        remote:        × Encountered error while trying to install package. remote:        ╰─> psycopg2 remote:        remote:        note: This is an issue with the package mentioned above, not pip. remote:        hint: See above for output from the failure. remote:  !     Push rejected, failed to compile Python app. remote: remote:  !     Push failed remote: Verifying deploy...
I am getting this error when trying to push the code to heroku through git
Charly
remote:              psycopg/psycopgmodule.c: In function ‘psyco_is_main_interp’: remote:              psycopg/psycopgmodule.c:689:18: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’} remote:                689 |     while (interp->next) remote:                    |                  ^~ remote:              psycopg/psycopgmodule.c:690:24: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’} remote:                690 |         interp = interp->next; remote:                    |                        ^~ remote:              error: command '/usr/bin/gcc' failed with exit code 1 remote:              [end of output] remote:          remote:          note: This error originates from a subprocess, and is likely not a problem with pip. remote:        error: legacy-install-failure remote:        remote:        × Encountered error while trying to install package. remote:        ╰─> psycopg2 remote:        remote:        note: This is an issue with the package mentioned above, not pip. remote:        hint: See above for output from the failure. remote:  !     Push rejected, failed to compile Python app. remote: remote:  !     Push failed remote: Verifying deploy...
Not full error, impossible tu help
Sukhmanjeet
This is all what is being shown in the build logs
Sukhmanjeet
this was a bit above of the end
Charly
this was a bit above of the end
Still not full, and read the rules on how to share code and errors here