Saadi
Anonymous
hey guys, any recommendations of where to put business logic in django apps? I see some core devs saying to put it on models but others say that it could be better to add a new layer, but some core devs say it is against django... so I would to know more about it
Doragonsureiyā
Andrej
Ivan
Hi guys, I’m using Djangochannelsrestframework to establish web sockets connection with React app. I use model observer which sends a message when something changes in model. But stuck with question about security. What is the best practice to secure websocket connection? I mean is there something like jwt tokens or smth.?
Suraj
If I'm using django authenticate() from django documentation..do i need to import "User"?
Anonymous
Anonymous
AAYUSH
Al
I Have A Question in Stackoverflow,
https://stackoverflow.com/questions/71775812/how-to-create-social-application-tokens-with-django
maybe someone can answer that.
Thanks.
sina
Hi guys
I have a problem in setting cookies in browsers
My cookies set in Firefox but
Not set in Google chrome!!!!!
where is the problem?!!!
Maxim
Narayan
How can run django on live server @all please help me
shubham
why i am getting empty queryDict in request.POST
https://www.toptal.com/developers/hastebin/rejavesuwo.sql
shubham
Charly
Joseph
Anonymous
Guys, any manipulation in the website (for example deleting a todo etc.) should return an HttpResponseRedirect?
Anonymous
Going to localhost:8000/project/todo/2/delete and then immediately redirected to previous page
Anonymous
Is that right?
Maxim
.
I have User as a foriegn key (author) in a model Blog. How to get all the blog objects in which the current user is an author?
Fan / Ac
NITIN
I am passing request.Files from one function to another background process functions but it is giving me a error that InMemoryUploadedfile is not json serializable. Can anyone help me how can i pass it ?
Vladimir
Hello, i have server in corporate network, without internet. Need realize file storage for any thousands files. I think how better did it, using server filesystem storage and give away by nginx or setup and to configure s3-compability storage. Search in internet didn't give an answer on this question
Rafał
Imo s3 solution will be easier and pleasant
B
How to send unordered queryset in paginate_queryset ?
If I send unordered queryset in to paginate_queryset the it's automatically order by pk.
So how to stop sorting ?
Andrej
Anonymous
Anonymous
tell me, is there a complete article on deploying django to an ubuntu machine?
with getting ssh, running correctly. everything is in order.
I just found everything separately, well, then it didn’t work out that way
Suraj
Someone please explain me the meaning of
"If user is not None:"
Suraj
I mean I know what's meaning of None. But the meaning of this line in django authenticate and login()
Suraj
Unable to get that
Javokhir
Hi everyone, I have a question, I deployed my project, but I can not upload images via models
Maxim
Suraj
Suraj
What i understand from that line if user is not empty/null then it will enter the if block
Maxim
Maxim
Suraj
I understood now
Suraj
Thanks for saying it differently, i got it
rakshit
Hey, is it a good practise to use the in-built authentication system or should I find another module?
rakshit
cj
cj
what make you think using built-in features are nod a good practice? why do you think then built-in features exist?
rakshit
Because, I thought that there can be some better extension for this stuff
rakshit
Which the market would prefer
cj
🙄
rakshit
God, dude I was just asking for some suggestions. Don't be so rude
ire
Д
cj
that's a default value for easy bootstrapping
Д
just because something comes built into a system doesn't mean you should trust it
cj
Д
cj
because Django is that... a framework ready to use out-of-the-box
cj
we're talking about built-in features... not default values that you SHOULD change, of course... but I guess you don't get the point ¯\_(ツ)_/¯
Д
but you're right that I don't see need to go and Modify django source code, no.
cj
Д
for functional purposes I don't really see a huge difference between questioning "the basic setting for Django auth is Basic HTTP Authentication" vs. "the basic DB for Django is SQLite" — since they both require going outside of Django
Д
cj
well, they do Replace something
if we go to OP original question, about Django's auth system... you can extend it to add, for example, tokens, using JWT or something else, that doesn't mean you're replacing Django's auth system —which is one of the best built-in features out there—
¯\_(ツ)_/¯
but I'm glad you opened your eyes and got the point and stop acting childish, good for you
Д
AL
ProgrammingError at /admin/
permission denied for table django_session
AL
help me 🙏