iLya
I think that is over complicated :)))
Mirco
Their code is open?
Obviously not
iLya
I want see code of project.
Govind
Hi, How can live chatting app work in Django?
Mirco
I want see code of project.
Open Github and look for DRF
Mirco
Hi, How can live chatting app work in Django?
Study Django channels and websockets Or start studying Django 3.0 async parts
Mirco
Which one is easy and best?
Start studying channels Django 3.x is still on work to reach a real stable async stuff , but the latest release has reached a much more stable stuff
Gil
I can have API for read only and not full CRUD
Because my actions, my mesages, doesn't refer any model, so it's complciate to intergrate
Mirco
Because my actions, my mesages, doesn't refer any model, so it's complciate to intergrate
You can have simple serializer that doesn't match with a model
Gil
You can have simple serializer that doesn't match with a model
I was in, but where I put "firewall/bissnes" rules? For example: I will put action = serialize.Charfield(...) but actions only can be, open, close, on, of .. nothing more... is this into serializer o where must be defined?
Gil
No that action could be a query param to pass through url
Yes, I undersanat, all calls will be POST; and data IN. But what happens if there is an error in action field, that isn't any of open, close,on,off... this logical rules, where I need to put, and where I must define de error message : (Field XX errror, )?
_
I am making a simple todo app with Django how do I show different to-do list for each users ?
Mirco
! offtopic
Doragonsureiyā
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
_
Every list has a one to one to the User
How to I write view for that ?
Gil
Views
OK i understant thanks!
Mirco
Views**
If I'm writing a view and not two views The name is view not plural
Mirco
How to I write view for that ?
Just get the list where pk is equal to request user
Gil
OK i understant thanks!
I think maybe I can create my own personalized fields? from rest_framework.fields import Field
Mirco
I think maybe I can create my own personalized fields? from rest_framework.fields import Field
The goal you want is to reach into views Serializer is just what that endpoint returns as response and what it expects to be sent
Hello
Go through owasp guidelines... There you can get detailed idea about how you can secure your webapps...
_
Just get the list where pk is equal to request user
The todo list I created is common to all users , when I try to print todo items id I am getting 1,2,3,....
_
I don't know
Mirco
You must know
Mirco
Study before coding
_
I have created a todo list with using any users auth ..... So that it is common when I open that url for todo item
Mirco
I don't know the requirements but I don't think it's good to have a To do common to all users
Mirco
Any user can change the to do of another one
_
I have a page to add todo items I can add items add here ,delete here But the problem is A.user adds "to learn python " B.user can also see "to learn python " I want filter obects while sending it before to the template
Mirco
And that's why I'm telling you to study more and understand that your models are wrong
Mirco
The relationship I mean
Mirco
Because you don't have One To One between To do list and user
Mirco
You have to change the relationship
Mirco
A User can have one and only one to do list
Mirco
By studying Django relationships and a bit of database basics theory
_
Thanks
Mirco
!yw
Doragonsureiyā
You're welcome! 😊
Devansh
Hello Guys I want to make order page in which user have to select the product on the basis of products variants like color and size should be shown I will be going to achieve using dependent dropdown But after user selected specific products ...the price should be shown ..after that ? How i can do that?
Anonymous
Hi Guys Is there anyone who ever configured CORS on amazon aws ec2 instances for Django project?
L
Hello there! I'm making a blog project for practice and Iwas wondering if someone could lend me a hand with this trouble I'm having. I'm tryna have some specialbehaviour when a blogpost is rather new (I was thinking in adding a "New" sign in html and css with an if statemente using django template language in my rendered template whenever the post is less than a week old). In order to achieve these I added these new atribute for my model which there's no way will work
Anonymous
thanks beforehand
L
See here:
L
that last line
L
https://codeshare.io/arVXZ7
Anonymous
https://codeshare.io/arVXZ7
https://codeshare.io/arVXZ7
Anonymous
https://codeshare.io/arVXZ7
I have added my try
L
Thankssssss
L
I had just figured that out, I did the same
Anonymous
aws
L
I know feel more confident it willwork or I did my best
L
now*
Anonymous
I had just figured that out, I did the same
I added file that gets the image path and renames the image with universally unique name
Anonymous
now*
)) happy coding)
Anonymous
Doragonsureiyā
is there anyone who has ever tried CORS on amazon's EC2
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 56k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
Which is better....django forms or the custom forms we made ?
Anonymous
Please help..i am stuck!!!
Pandu
Hy guy's, my form raised validation error, how can I pass this error to views -> template.
Sai
Even my is_staff field valueis TRUE, I'm not able to login into django admin on my production. It's working fine on local django server
Anonymous
When in production mode website is fine
Anonymous
But when I host it giving an issue