Shubham
Thanks i found my mistake
Shubham
I was using serializer.serializer instead of serializer.ModelSerializer So it was not working
Akhmad Osmanov
when do we get AnonimuosUser?
cj
when do we get AnonimuosUser?
when nobody is logged in
Akhmad Osmanov
thank's
Shubham
In django forms/views We user commit=false and assign more data and than save it How do we do the same in drf?
Gil
In django forms/views We user commit=false and assign more data and than save it How do we do the same in drf?
Interesting question: i have never done it, but: https://stackoverflow.com/questions/13563020/editing-django-rest-framework-serializer-object-before-save
Shubham
Thanks I tried this, but it's not working. I'm Trying to create new user and set it's password Previously in normal django I edited forms save method and used set_password and was able to create the new user with password But now when I edit serializers save method I cannot put super().save(commit=False). 'Commit is not a valid keyword argument to the save() method' gives this error. So i cannot edit the save method. But i user Set_password to set password from views as it says 'set_password' is not defined
Shashank
i want to compare two csv files on the base of column id and write new xls row for it please help
Shashank
as it take much time in memory
Shashank
ok
Shashank
https://hastebin.com/uqegurorav
Shashank
please help me as i new to python
Shashank
this is piece of code i have to paste in my django class
Doragonsureiyā
this is piece of code i have to paste in my django class
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so move to @PythonOfftopic group and ask there.
M3FoOoS
How can get verbose_name field in template
George
How can get verbose_name field in template
You shouldn't rely on that. Use another thing.
M3FoOoS
You shouldn't rely on that. Use another thing.
I want to bring the field name to the template so that I don't want to type in html, and when the language changes, the name will appear in the appropriate language.
George
translating from a verbose name is not the way to go.
M3FoOoS
Example
M3FoOoS
Then another reason why you shouldnt do that
{%for x in objects %} <label>{{x.verbose_name.field}}</label> <span>{{x.values}}
M3FoOoS
don't rely on that.
So what do you think do I write in the poster html and next to it the value that comes from the database?
Sha FI
Is there any django documatation
Anonymous
Is there any django documatation
Go to Google and search ext:pdf Django documentation and download the first one
Sha FI
Django has a feature for form validation
Sha FI
I don't know
Sha FI
Is there any one to know about
Anonymous
I don't know
Then what r u doing here my frd
Sha FI
Django form validation ?
Anonymous
Django form validation ?
Yes django have great validation for forms u can use Def clean or Def clean_field etc...
Sha FI
Did you use that feature?
Anonymous
Did you use that feature?
Everyday including now
Doragonsureiyā
Is there any django documatation
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Sha FI
How can i know about django form validation
Sha FI
I used django documatation
Sha FI
But i can't get
Sha FI
🙁
cj
But i can't get
don't you know how to read? or what?
Anonymous
But i can't get
See YouTube video then or go to medium or see Vincent website
Sha FI
Ya!
Sha FI
U tube videos
Sha FI
I lernd coding frm utube videos
Anonymous
Search for ur thing and add medium like django form validation medium
cj
I lernd coding frm utube videos
that's why you don't know things 🤷🏻‍♂
Anonymous
Or django form validation Vincent
Sha FI
Oh!
Anonymous
bad advices
I know but sometimes it save u if u got good ppl there and there are good one
Sha FI
Oke thanks
Anonymous
go read them all ☝️🏻 don't skip anything
That is absolutely mandatory man for real the doc are like the Boss of all Django material
Sha FI
Am just a bigginer so i have so many mistakes 😅
Anonymous
How can I resolve this error django.db.utils.OperationalError : no such table : main.auth_user__old
Anonymous
I was adding entry in my django database through django admin, then this error came
Anonymous
I did
Anonymous
I did
cj
U should import models first in admin.py
that's has nothing to do with his problem do you know how django works?
cj
I did
check again, looks like something somewhere is referencing to that model/table
Anonymous
Meaning?
Fabian
greetings group! i have a small doubt, how can i storage some additional info belonging to a user if it is from an specific django group? (role). Lets say, i want to store Admins user address
George
greetings group! i have a small doubt, how can i storage some additional info belonging to a user if it is from an specific django group? (role). Lets say, i want to store Admins user address
You could do many things, like allow it to be blank, use a custom function to force some users to use it, or hide it in other type of users, also you could add a dict or random non normal data like hstore in postgres
Manavver
Hi! all, I deployed my blog website on heroku server but my website showing ( at=error code =14 desc="No web processes running" ..
Manavver
How to solve it ! Can anybody help
Fabian
did u set a procfile?
ᐯᑌᏞᏦᗩᑎ📈
i've deployed my app to heroku but when i did DEBUG=False it is serving a server 500 error