Ivan Putra
How learning curve between laravel and django
Ivan Putra
?
cj
why people like to compare horses with bananas?
Anonymous
Hi.. Any one used wkhtmltopdf with arabic fonts ??
Anonymous
I'm having a trouble. Full stop is coming as square.
Mirco
@il_mastrobirraio English here 😂 it's not Django Italy
Mirco
Ops sorry
No worries 😁
pino@mastrobirraio ~$
Guys a question. I'm developing a rest api backend using django. Bees are consumed by an app and there is no need for the user to be logged in to call them. But I want only the app to be allowed to receive the response. I thought of using jwt or a token system. Is there any best practice or are they out of the way?
Anonymous
Hi! How long does it take to learn django to intermediate level??
Prakash
hi friends anyone have this udemy course video series https://www.udemy.com/django-python/
ashis
hi
ashis
i ahve
ashis
have
Deepak R
One more question ......Any youtube tutorial for DRF ?
Deepak R
https://www.udemy.com/django-python/. .........how is this course ?
R
One more question ......Any youtube tutorial for DRF ?
https://m.youtube.com/results?search_query=django+rest+framework+tutorial#menu
R
Yw 🤷‍♀️
R
Lol😂
More than 1000 reviews, guess you can get more clue about how is the course reading there than asking here
Deepak R
Yaa from next time I will take care of it....thank you
Rammanoj
How does django-DRF handles CSRF attack. I am testing my django project using postman ?. I am not passing any csrf header to it. I am just passing a Authorization header. I read about CSRF attack, and I am not sure if drf handles it. If drf handles it how does it handle ?? else if it does not handle what extra implementation have to be added to protect the api from csrf attacks ?
inchidi
How does django-DRF handles CSRF attack. I am testing my django project using postman ?. I am not passing any csrf header to it. I am just passing a Authorization header. I read about CSRF attack, and I am not sure if drf handles it. If drf handles it how does it handle ?? else if it does not handle what extra implementation have to be added to protect the api from csrf attacks ?
technically if you are using token based auth, you'll be safe from csrf. let me ask you some questions to make it sure. if you already authenticated and you make request without "manually" pass the token to Authorization request header, will your api accept that request?
Anonymous
Hello guys , I have a database with full event data, 7 athletes their starting number and their finishing position. On the other side I have just their starting position and some of their past results, how can I find the event name with this partial data, thanks
Anonymous
Events.objects.filter(athlet_start_position__exact=7)
Anonymous
You need 2 models Events and Athlets, and define Field.ForeignKey(Events) in model Athlets
Mirco
Events.objects.filter(athlet_start_position__exact=7)
start positions could be different among more events I think
Anonymous
Anyway he needs to look at documentation's chapters about ForeignKey and Making Queries
Muflone
Hi. I have to send from an app a group of objects. I could serialize the list with Json. What's the recommended way to receive a json from a Django page?
Anonymous
But not in the partial data
Mirco
But not in the partial data
Do past results have some commons data with events ?
Anonymous
Yes, it's the same data
Anonymous
It's just incomplete
Anonymous
Do past results have some commons data with events ?
Using Q I wanted to filter the athletes based on their starting position
Anonymous
Hello house I'm a baby in python please how do get a real work application to practice with....
Anonymous
Do past results have some commons data with events ?
And the past finishing positions to get that event
Mirco
So , you already have relationship between them right ?
Anonymous
Mirco
Yes I do
If you set up a FK is easy to filter what you want based on starting position
Anonymous
If you set up a FK is easy to filter what you want based on starting position
In this case the queryset will not use the athletes model because the data which I will use to o find the event is their finishing position in the last events
Anonymous
If you set up a FK is easy to filter what you want based on starting position
Eg. I want to find an event where the starting position one has been number 2 or 3 or 1 in past events, starting position two has been number 5 or 6 or 2 or 1 in past events, starting position four has been number 6 or 4 or 1 in past events and so on
Anonymous
In a model of type DateTimeField when using auto_now_add and auto_now for that model field it does not consider timezone that I specified in settings? Let me clear that my code is not wrong because when I use timezone.now() from django.utils.timezone it returns correct time according to timezone specified in the settings
Anonymous
Please tell me if my question is not clear
Anonymous
Mirco
Any advice
I'm thinking about it
Anonymous
I'm thinking about it
I would really appreciate
Anonymous
when i uotput: Post.objects.all()[0].publish it is not in my time zone problem is when it is not in my time zone dates are messed up too then my date marked urls wont work I have 3:30 time difference with UTC Posts made before 20:30 (local time) works But posts that are made between 20:30 and 24:00 have wrong url because they are made yesterday
Mirco
I do My field have it
In your shared code, don't
Anonymous
In your shared code, don't
Sorry, you are right I read lines below that
Anonymous
Really sorry
Amirul
i cannot find any mention on request.PUT or request.PATCH in django docs. Does django by default does not support the full HTTP request methods?
Théau
Hey, I want to integrate charts in my Django app. I want to use bokeh as I can directly plot in python. Would you recommend it or should I go through d3.js or other js library directly instead ?
Amirul
Are you using Django Rest Framework ?
nope, just curious. ill check it out
Mirco
nope, just curious. ill check it out
👍🏻👍🏻
Anonymous
https://youtube.com/watch?v=B4Vmm3yZPgc