Doragonsureiyā
Please move your "Hello" and other social talk to @PythonOfftopic.
Faraday
hey who can help me with linux beginners tutorial?
NIDESH
I have got a list of data from excel....now i need to pass them to db using serializers...any suggestions?
mukul
Cannot assign "[<Item: Item 2>]": "OrderItem.item" must be a "Item" instance. how to slove the issue
coder
Guys . how to create multi user can access service? Guy give me you idea please
John
Hey guys I have a message field with a foreign key to users but I cannot filter the users based on conditions like is_brand,is_distributer,is_retailer and show it as a drop down in the input in Django rest framework, please help https://pastebin.com/6aax0bm9 https://pastebin.com/JgRFciFn https://pastebin.com/qBTsGwx3
ScYtHeR
Hello👋. I'm quite new to DJango and got an assignment for a job position. I wanted to ask how this can be done. Is it web scraping or it can be with regular django ?
ScYtHeR
Create the python web application to calculate top five users who have sent maximum number of messages and show the result in form of table on simple HTML web page. The response has the string where it contains data in the following format: “Username:message , Username:message , Username:message …. ”
ScYtHeR
It's just web scraping
Thanks. Just wanted to confirm.
Doragonsureiyā
Thanks. Just wanted to confirm.
You're welcome! 😊
ScYtHeR
😊
mukul
Cannot assign "[<Item: Item 2>]": "OrderItem.item" must be a "Item" instance. how to slove the issue
Anonymous
Cannot assign "[<Item: Item 2>]": "OrderItem.item" must be a "Item" instance. how to slove the issue
i don't think u got the question but let me explain further, when i have the model like above and view it on the browser it returns a list of all the users in the database, but i don't want it to do that i want it to automatically assign the user that is creating the data, so when i view it i don't want it to show me a list but assign me as the creator(owner) of the data
Alex
Hi there. Could you help me with django orm query? I have table like Account | Transaction | additional fields | Date | Spend How can I select sum by field Spend for period? Looks like: Account | additional fields | Sum(spend) for period thanks
John
class MessageSerializer(serializers.ModelSerializer): email= serializers.PrimaryKeyRelatedField(queryset=User.objects.all(), source='receiver', allow_null=False, required=True) class Meta: model = Message fields= ('email','message','timestamp',) Here how do I exclude the current user in the email field with user query_set which shows all the users
John
I don't want to show the current user in the email field anymore please suggest I tried it many getting issues when I change this
William
You want all the users in email field?
Jeevan Panwar
So how I can add beautiful animation in apps
John
You want all the users in email field?
All users Except the current user
William
All users Except the current user
Does current user mean logged-in user?
John
Yaw
Damron
hi! I have qstn about measuring of media file I'm uploading media file(,mp3, .mp4) to the server and want to get its duration time But my DB is located in remote machine How can I measure duration?
William
Share your model's code using pastebin.com
Anonymous
Uploading base64 images Django github
Anonymous
?
Anonymous
please share link if someone has done this project please
Doragonsureiyā
please share link if someone has done this project please
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Mirco
not found
Django or Django Rest Framework ?
Mirco
Anonymous
Anonymous
how to convert base64 string into actual image
Mirco
how to convert base64 string into actual image
https://matthewdaly.co.uk/blog/2015/07/04/handling-images-as-base64-strings-with-django-rest-framework/ This one is enough and you can upload an image as base64 and save it to ImageField
Tani
Can oneyone help me when I am trying upload and image it is not showing on react page but it's data show in Console
ㅤㅤㅤㅤㅤㅤ
Hi guys I'm having error from creating API Could you help me
Doragonsureiyā
Hi guys I'm having error from creating API Could you help me
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
ㅤㅤㅤㅤㅤㅤ
I'm getting detail json parse error expacting value line 1 column 1
Xavier
I'm getting detail json parse error expacting value line 1 column 1
check: 1) content type : "application/json" 2) the request or file is actually json file
Tanu
How to install dlib in vscode
Doragonsureiyā
How to install dlib in vscode
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Tanu
Okk
Tanu
Thnks
Hey It's
Hey! anyone can help me with problem? https://stackoverflow.com/questions/68059751/populate-django-databasesql
hijkl
hey everyone, can anyone please tell me the basic level interview questions asked in technical interview
Doragonsureiyā
hey everyone, can anyone please tell me the basic level interview questions asked in technical interview
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Anonymous
AKSHAY: Can anyone explain meh briefly what is the use of makefile and docker..?? In python**
Anonymous
No one answering
Mirco
No one answering
wait until someone is free and wanna answer
Anonymous
Ok
Да, я
Hello, how can i make redirect to page?
Да, я
I wrote redirect(view_name, arg=value) but got error NoReverseMatch
Maxim
I wrote redirect(view_name, arg=value) but got error NoReverseMatch
https://stackoverflow.com/questions/11241668/what-is-reverse
Да, я
https://stackoverflow.com/questions/11241668/what-is-reverse
is it possible make without making url, only redirect to view
Maxim
is it possible make without making url, only redirect to view
But in general, what prevented you from googling yourself?
Да, я
But in general, what prevented you from googling yourself?
I got error when trying redirect with params
Ravindra.py
is form like a model?
Jack
str(BASE_DIR / 'mystaticfiles'), TypeError: unsupported operand type(s) for /: 'str' and 'str'
Jack
???
Jack
why i am getting that
Rohan
why i am getting that
Cuz you are being lousy.
Jack
what do you mean by dividing