Akhil
Thanks
cj
Ohk
https://developer.mozilla.org/en-US/docs/Web/HTML
Ibrahim
how to add all checked boxes / select multiple options to manytomanyfield ? i even tried models form
Ibrahim
but not working, i have category and listing tables, in listing there is categories column with many-many rel to category
DTN
Hello!
DTN
How to print each element of a queryset using breaklines into table data?
DTN
How to print each element of a queryset using breaklines into table data?
https://imgur.com/a/NXGFSZg what I want is in the same <td> print Alumno Depru1 and below Alu2 depru2. Right now this two are printed side by side
DTN
https://imgur.com/a/NXGFSZg what I want is in the same <td> print Alumno Depru1 and below Alu2 depru2. Right now this two are printed side by side
tried: {% for al in item.alumno.all %} <td> {{al}} <br></td> {% endfor %} but didn't work
Anonymous
Unable to open data base file in django
Alisher
Unable to open data base file in django
There could be million reasons for that
Alisher
Specify error, explain what you did, how you did and what you do you want to do
Aneesh
django.db.utils.OperationalError: server closed the connection unexpectedly         This probably means the server terminated abnormally    before or while processing the request.
Aneesh
Any one know about this error
The mint of Linux **
https://adamj.eu/tech/2020/06/28/how-to-add-a-well-known-url-to-your-django-site/ Same strategy
That's a totally different approach but I will try .. thanks
Alisher
Pls share details error
He wants us to predict...
The mint of Linux **
He wants us to predict...
Ya 😅... This too wierd ...may be a new user I don't know
Aneesh
psycopg2.OperationalError: server closed the connection unexpectedly         This probably means the server terminated abnormally         before or while processing the request
Aneesh
Yp
The mint of Linux **
Do u installed of admin?
Aneesh
Yes
The mint of Linux **
Pip install psycopg2
The mint of Linux **
Is not working?
Aneesh
Yp
The mint of Linux **
Pm me I'm sharing u a video link
Aneesh
Ok
Anonymous
Good evening guys i have a problem with my view from django i want filter the dates from model to put in the my template but to be geting a error --> AttributError: type object 'Post' has no attribute 'objects' who can help me?
Anonymous
This is my view --> queryset = Post.objects.filter(status="do")
Sai
Hi guys while I am creating models I am getting the error as "django.db.models has no attribute charfield" Please friends will u please tell me why I am getting this error
Mirco
That's a totally different approach but I will try .. thanks
Have a look at it, it's an approach of a Django core dev
Rudrashtakam
how to get html input tag value in django temple tag within same page
The mint of Linux **
Have a look at it, it's an approach of a Django core dev
Ya...I'm trying many code of online doc..but not working
Mirco
Ya...I'm trying many code of online doc..but not working
Because you need to understand how it works without Django then how you can achieve that goal with Django
Ise
Is React easy to learn if I really put an effort? I am familiar with Django and for the frontend I wanted to use React. I have been learning React and I am quite familiar with it (medium) but I have some difficulties integrating it with my Django app. So should I stop using react and move to Vue or is it worth trying? Thank u guys!
Naila
Nah, you should understand how the connection works otherwise you will have the same issue with Vue, Svelte etc.
I have this same problem too...so by the connection do u mean the post, get, etc...requests or?
Naila
I am already familiar with how to link it to Django and also, I can use the ApiViews for generating lists, details, editing amd deleting. The authentication part kindda confused me.
Mirco
I have this same problem too...so by the connection do u mean the post, get, etc...requests or?
I don't know what he/she means with connection but the most common way and it's easier for beginners is to have React and Django fully decoupled and expose APIs with Django and fetch them with React
Илхом
hi guys
Naila
You just need to write APIs with Django Rest Framework , it's easier to manage endpoints
Yeah I do exactly that. The thing is when it comes to form validation i kindda get stuck
Илхом
how to set up a server for python
Mirco
Yeah I do exactly that. The thing is when it comes to form validation i kindda get stuck
With DRF "form" validation is equal to serializer validation
Mirco
You can do a minimum validation with React but then your backend has to do the real validation via serializers
Naila
With DRF "form" validation is equal to serializer validation
Oooh...So I can do the form validation in the serializer and just pass the form values on my React like I do with the editing stuff? Is that what u mean?
Mirco
Yes, when you submit a form via React you make a POST with some data That data needs to be passed into the serializer and check if it's valid or not
Mirco
You need to think serializers as django forms
Naila
You can do a minimum validation with React but then your backend has to do the real validation via serializers
Oh...i had this misunderstanding that if I am using a frontend framework i won't be able to make validation through my Django app...silly me😅
Mirco
Otherwise everything will look so hard to do
Naila
Yes, when you submit a form via React you make a POST with some data That data needs to be passed into the serializer and check if it's valid or not
Oh okay once...so u mean...like i pass it as axios.post(localhost:800/api/edit) with the values im my form, I do that for any other validation ryt?
Mirco
The data you pass via axios will be received by Django and pass through serializer
Mirco
Then you will check if serializer is valid or not before saving
Naila
You need to think serializers as django forms
Ooooh I get it now...so as we do with the Generic views of createview, etc...we use the updateapiviews etc ryt?
Naila
Then you will check if serializer is valid or not before saving
Oh okay then. I need to dig more into the Django rest framework then☺️
Mirco
PyMike provides a course on Udemy for DRF + VueJS
Naila
The flow is the same
Ah okay thank u very much I needed this info☺️
Mirco
You can learn a lot
Naila
PyMike provides a course on Udemy for DRF + VueJS
Oh okay...'ll.make sure to check that out! Thanks again😊☺️☺️
Бунёд
hi i’m finishing my bachelor's degree in information security this year and am currently working as a middle backend dev. and i don't see the point in my bachelor's degree, since it takes a lot of time and i have a job now even without it however, i have a question. does anyone know if it is important to have an another country education in europe / usa / canada / australia / japan? does it offer any advantages when looking for a job as a backend developer? maybe this is important only for the highest positions? maybe for someone it’s important just to have an education and no matter what specialty? (i’m currently studying and working in russia and here does not matter a programmer higher education or not) ((sorry for my English))
Бунёд
Is it related cyber security ?
my current job and the job i want in future (also in backend) aren’t
Бунёд
What type of backend are expecting?
with python frameworks and libraries. like django / flask + something asynchronous or just a stack for high-load apps