Agent Q
b
if there is article about it or a video please share
b
عــمــر
How can i get field data , for example i want to get all users first name
How can i do that with simple command ?
Abhishek
Anonymous
I am some how familiar with python, but I am having a hard time understanding django's concept.
Any recommended django courses?
Abhishek
Abhishek
Anonymous
איש רגיל
image_path = BASE_DIR('.') / '/media/' + image
assembled_request=requests.post(upload_url,files={'file':open(image_path,'rb')})
'str' object is not callable
What`s wrong?
Salisu
Hello there! Please how can I generate a primary key with GOF/DC/Y/0001 pattern in django? Where Y is the current year and 0001 is auto incremental. Thanks
faran
hi I use simplejwt in drf and I use blacklist_token app . now when I want to delete a user that have token (logged in before) I cant do it in django admin it give me :
Cannot delete user
Deleting the user 'faran1' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:
outstanding token
and with the api that I mademyself it give me :
IntegrityError at /auth/delete_profile/2/
FOREIGN KEY constraint failed
Rudra
Hi, I have recently switched to Linux (pop_os) from windows, and I have created a Django project but every file of the app says import error on
'from django.' but I have installed django with the virtual environment, can anyone know about it??
faran
איש רגיל
Thanks, guys
Rudra
Yes I am doing all work with python3 and pip3
faran
Rudra
Yes, just in a minute
հօรรεiռ
hi
is there any app to show server logs in django admin???
Rudra
In views.py :
unable to import 'django.shortcuts' pylint(import-error)[1,1]
Rudra
It shows me when I try to import anything
faran
Rudra
Yes
Rudra
I can see the rocket page
faran
Yes
if you dont get any error in server log just disable the pylint and make your life easier. its probably not configured well in your ide.
Rudra
Thank you I'll try.
איש רגיל
image_path = BASE_DIR + '\media\'
image_result = image_path + image_print
Error:
איש רגיל
image_path = BASE_DIR + '\media\'
^
SyntaxError: EOL while scanning string literal
איש רגיל
How to fix?
faran
איש רגיל
Then it will look like this:
C:\OSPanel\domains\autopublication\autopublication/media/post.png
faran
איש רגיל
But how
faran
But how
import os in the top
image_path = os.path.join(BASE_DIR, "media/")
image_resault = os.path.join(image_path, image_print)
איש רגיל
name 'image_result' is not defined
איש רגיל
:(
faran
paste what you write
איש רגיל
image_print = str(image)
image_path = os.path.join(BASE_DIR, "media")
image_result = image_resault = os.path.join(image_path, image_print)
print(image_result)
faran
איש רגיל
oops
איש רגיל
The same
איש רגיל
okey, I understand
איש רגיל
Grammar mistake
faran
yeah I find a typo
איש רגיל
oh my god
איש רגיל
[100] One of the parameters specified was missing or invalid: photo is undefined
איש רגיל
API error
איש רגיל
I want to cry. Second day of working
faran
what are you trying to do ?
איש רגיל
We have social media called Vkontakte in Russia. I wanna do form which is send request to Vk to make a post in the group
Mrgl
איש רגיל
+
איש רגיל
https://pastebin.com/qgW7EWfD
איש רגיל
My code
איש רגיל
If I post post_two.png - no errors
If I post post_three.png - gg
איש רגיל
Oh my god
איש רגיל
Sorry. My mistake is that I mustn't post image 8500x8500px
איש רגיל
I'm sorry for your wasted time
faran
איש רגיל
Hah, my 4 hours of trying to find the mistake in code
Mrgl
Anmol
Saranya
guys anybody knows how to use JWT authentication in Django..If anybody knows plz share or kindly recommend any videos
Anonymous
Guys; can you anyone help for abstractuser for 3 role with authorization.
SHAKEEL
Hi guys, hope you all are doing good.
In 'LoginView' of "django.contrib.auth.views"
I want to override '"template_name"' and use LoginView...
Please guide me.
SHAKEEL
Kusuma
Hi guys, How can I access the product owner from this case ? Please I need your help (curently it shows all of the Order and I don't know how to filter them)
this is my models and views:
https://pastebin.com/d8G6q5um
Alvi
guys , anyone use django q with heroku redis as broker?. can u give me some clue how to integrate it? i always receive error "get record: wrong version number".
i use redis premium 0
Tonana
Django + vue3
Vs
Django + svelte ?
Богдан
Богдан
Mirco
why not react?
I prefer working with Vue over React, but I'm not saying no to React
And Svelte is good as well, much less code
Tonana
React vs Vue3?
Mirco
React vs Vue3?
Nah, you can use also htmx
Choose the one you have more skills or your team have more skills on it
Django side makes no difference