Almaz
For the delete function, you have to pass the pk in the URL
Yes! Finally, it worked! Thanks you very much!
maroong
I'm trying to create an online code compiler like the one on hacker rank. How do I connect my Django project that is setup locally to a docker container that's in a VPS?
Armin
I'm trying to create an online code compiler like the one on hacker rank. How do I connect my Django project that is setup locally to a docker container that's in a VPS?
Well if your docker container is exposing a specific port to the vps and your server (Nginx for instance) is set to route all requests to that specific port, you're good to go.
AMiR!
I am not sure I fully understand the problem. So correct me if I am mistaken. You want to let your users sign in and create benefactor instances and you want to set the user in the request headers while other fields are sent through request body?
Yes exactly I want user just after loging in access the benefactor url And after that show him a form that fill the requested fields but the user field in benefactor model get its data from request.user
whatsinaname
Bootstrap modal not working after using ajax
Haris
Hello, My Python stops working and App crashes when I try to enter django admin Please tell me what is solution
whatsinaname
Show the code, please
It has been solved, thanks though😊
TЯЕBŌГ
Hello developers, my project is a project closed to the public. Therefore, I would like to incorporate an invitation system so that only invited people can register. Ideas how to achieve it? Thank you very much in advance colleagues!
Adyl
Hello guys, how to filter nested filter product by characteristics? Can anyone help me?
Adyl
DRF
mr.vip
Hey I just learn all the basic in django from documentation . Then waht I do.
mr.vip
One more question How can I build our logic in programming.
gyau
please I am a visually impaired programmer, I know some part of the Django frame work but please can somebody give me a comprehensive documents on the advance topics in Django.
Anonymous
How do I make a column in a table clickable
gyau
in django python classes are used to build structure a table column
gyau
please you will create a django project. after that please create app name it example
gyau
if you don't know how to create project open this file
gyau
instructions to create django project cmd type the following. django-admin startproject projectname app cd projectname type manage.py startapp appname
gyau
please sorry I did not understand the question first.
gyau
now you are talking about front end.
gyau
please you can use jquery to accomplish that.
gyau
I don't know whether I get you right?
Anonymous
Hello, I want to know how "easy" and clean is use more than one app in a Django Project. I'm doing an app like AirBnB. Also, have you tried to implement node.js with Django? I heard it's very powerful
Anonymous
Hi people
Anonymous
Any body know a library to record multiples files in django-rest-framework
Anonymous
🙏
Anonymous
I need help in dhango please pm if anyone can help
Anonymous
Hello any Django expert i need help .
William
Hey I just learn all the basic in django from documentation . Then waht I do.
Try building apps. Create a todo app with function-based views and create the same app with a class-based view. Then, start learning django-rest-framework.org
Carlos Vinicius
Hey guys! I'm Carlos Souza. I live in Brazil, I study programming. Lately I've been focusing my studies on Django; through freeCodeCamp. If someone here needs good material, there's this one 👇 https://youtu.be/jBzwzrDvZ18
William
Carlos Vinicius
Ok 🖖 ~ First of all, I'd like to get to know the Django community better!
Guys, I just read the Code of Conduct; and I saw it's on the framework's official website. Well, glad to be with you. I will try to contribute as best I can! 🖖🤓
Anonymous
Anyone can help how can i retain selected value after submit im Django forms
Anonymous
Please guys reply i need help
VISHNU
How to get the values of list in django template. In api view i.variant_id.variable_value.all()[0] I got the first one and If given 1 I got 1 element how to right in django template same.because not able to use all()[0] there.
Anshu
Anyone can help how can i retain selected value after submit im Django forms
One thing u can do is use ajax and do not reset the form Or get clean data after checking form valid and pass it as a context in render
tushar
hlo i want to delete multiple values so i have veriable in sting dataid is primaray key dataid1="176,177,178" model.objects.filter(dataid=dataid1).delete() i use this method but this is not correct so how i do this
Rohan
You gotta do some sanitisation on that list before shoving it in ORM
Tukhtamurod
That looks ugly.
the string representation is ugly😅
Tukhtamurod
i dont know why he is getting them inside string
Rohan
I am just saying, do the split and strip part in yet another method and yes use __in
Tukhtamurod
I am just saying, do the split and strip part in yet another method and yes use __in
that was the clue though, just knowing using __in and giving list is enough, until that you could write any clean code
Henry Joshua
Any body know a library to record multiples files in django-rest-framework
Y not try s3 bucket or cloudinary it's not a library though but it can do the job even better than any library that might be recommended
Rohan
unless it is microservice artichecture, it is completely unnecessary
That’s why I asked what he meant by “more than one app”
Rohan
Need more context, but it should be easy regardless
Rohan
Have worked with django in microservices environment
Rohan
The challenge was just managing data
Tukhtamurod
That’s why I asked what he meant by “more than one app”
brave of me to assume that he wants to write one app in django and his friend the other app in nodejs😁
Tukhtamurod
The challenge was just managing data
well-organized synchronization and good to go
Rohan
That’s one of the benefits of microservices, at the end you just have to expose the APIs doesn’t matter what you wrote them in
Rohan
well-organized synchronization and good to go
Yea, sometimes you need to setup cold and hot caches to get data quickly rather than a network call
Rohan
And sometimes you need nosql and event based triggers to maintain a datalake
Tukhtamurod
That’s one of the benefits of microservices, at the end you just have to expose the APIs doesn’t matter what you wrote them in
there are a lot benefits, most liked by me is if one server is down, others still keep functioning
Tukhtamurod
but if the synchronization part gets stucked, then everything is down😅
Tukhtamurod
What organization do u work for
zip24, work on a project called Storfox, it is under development right know
Tukhtamurod
it is a project that automates WMS
Rohan
We have this automated pipeline to spawn new instances, if they keep failing too, we roll back to previous tag
Shriyash
Hi everyone, i have created mp4 to text converter app using flask Now i want to create API of the same How to do that. Can anyone help me with this?