inchidi
else, since you have fallback for requests.method != 'POST' you can try send the same request to same url but with GET method and make sure you get 'success'=False as specified there, coz if you dont get it then you can sure that you're using wrong url.
inchidi
*coz CsrfViewMiddleware ignore GET method
inchidi
inchidi
ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ
Daler
Hi everyone! I have a question.How can I make chat API using drf and Django channels.Can any explain me step by step roadmap
Daler
inchidi
Thanks
btw most likely instead of websocket, SSE is what you're looking for
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events
nyctophile
A
How to slice a string in django template , I want to remove last 5 characters, I am using {{ data | slice: ":-5"}} , it's not working
T
A
Didn't got bro
T
use the reverse slicing operator [::-1] syntax.
Kaustab Roy_C_24_CSE(AIML)
How can get,post,put,patch,delete data from Django Rest API in Angular(12+) Frontend application.
Can anyone suggest any beginner friendly article or video tutorials on this topic??
It will be very helpful. 🙏🙏
Abhinav
Hi everyone, I have a question. 
I have developed a flask api endpoint and need to deploy it to a Linux server just for demo. Can I just use Gunicorn as a server without Nginx?
Suryo Adhy Chandra
Abhilash
Can anyone help me with a web development project using django?
Doragonsureiyā
You
Hello guys. I want to connect to the postgraduate database, but this is the error:
conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 8000?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 8000?
Muflone
Mihir
How can i create model object for foreignkey in django
I am unable to save form
You
Jahongir
Hi guys. I have a model called Order and it has some fields such as currency, shop, paid, etc. shop field related to Shop model with FK. How can I update the model's all objects' currency field to shop model's shop_currency field? I'm currently using for loop. But If I have a lot of orders, loop takes a long time.
Jahongir
my current logic
for order in Order.objects.all():
order.currency = order.shop.shop_currency
order.save()
Charly
Jahongir
could you give me mini-example?
Charly
https://www.sankalpjonna.com/learn-django/running-a-bulk-update-with-django
Jahongir
Rajan
Where we can deploy our django projects
Sea
I am hosting my Django project on AWS which is using AWS RDS for its database but I am getting this error again and again, can anyone help me to resolve the error?
django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on 'database-1.cgw14feyvao3.ap-south-1.rds.amazonaws.com:3306' (110)")
Muflone
Muflone
Eduardo
Sea
Doragonsureiyā
Can you give some examples for this?
Your question is not related to Django.
If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Eduardo
Can you give some examples for this?
Maybe this works: https://stackoverflow.com/questions/64364027/cannot-connect-to-rds-from-ec2
What I told you before is only applicable if you need access to the DB server outside AWS; I know because i was also sometime ago working in a Django project and I couldn't connect to the DB from my machine because of that.
Anonymous
Can anyone give me best template of carpooling with django??
Sourabh
Dear all
Am new to python platform
I want to learn DJango
Someone plz help me by providing recourse links
Manar
Sourabh
Thank you so much
Mahdi
Hey guys
Hope you all doing great.
I have a form that uploads file for me and it has a js that shows a progress bar to user while uploading the file.
Everything works fine on my local and a python host (that i deployed my project on it few days ago)
I deployed my project on another server using gunicorn and now while uploading the form is getting this error :
502 (Bad Gateway)
What is possibly wrong here?
Charly
Charly
Yeganeh
Hi guys
I’ve a django/React website
I want user login in react side and go to django dashboard authenticated
And logout from django dashboard and react can recognize user logout
What’s your suggestions?
Thanks a lot
nyctophile
Hi guys!
I having problem with checking if form variables valid with form.is_valid() function
and it returning False but i do not understand why I am getting false
here is code ! Can anyone help with that
any help appreciated
Noor
IS ANYONE HELP
Noor
I want to create a token in api
Noor
But i don't know how can i do this
Анатолий
Noor
Thnks
vijay
عبد القيوم
I want to create a token in api
you can refer to django rest framework documentation. There you can find token athentication. Just follow the steps
Sea
I have created a project using Django rest framework and react and now I want to host it on AWS using ec2+s3+RDS, but I am not able to host both together. First do Django standalone and then reactjs . Any best suggestion on what is the best way to host a website and what should I do?
Wizard
Does anyone know how to make https://x.x.x.x/static/1.pdf work?
Muflone
Prince Walgwang
Hello guys,
Anyone has done django,celery and redis deployment to aws ec2 instance.I need assistance getting celery setup on aws ec2 instance
Jalil
I need app for invest money so can you help me anyone parson
Jalil
I pay money
So can you have anyone parson make App so please contact me...
Karunakar
Hello guys Is there anyway to convert json into base64 without converting it into string?
Karunakar
As both will be having different base64 codes am struggling with it in phonepe pg Integration
bansh
Ok
Charly
Karunakar
Александр
Hi all.
I made a website in Django, started making scripts in JS, how can I write to a database from JS?
For example, the user clicked “add item to cart”, and so that an entry was made in the database?
Karunakar
Charly
Александр
Charly
Александр
can you tell me how to do this?
Александр
I can’t even understand it in my head yet😄
Александр
I made a form for a cart, collected request data in js, but I don’t know how to transfer it
Karunakar
Do u use any post method in form ??