Lone wolf
Anonymous
How we can make the fake request to an endpoint that has captcha?
(for writing test)
Charly
Anonymous
Мark
Hello guys, I am new to django and now I am doing my first project. So, all day I can’t solve 1 problem. Could you help me pls?
Doragonsureiyā
Мark
ValueError: ModelForm has no model class specified.
Although, I add Meta class
Charly
Anonymous
Wow, How did this bot find out that the problem was not explained?
Anonymous
Charly
Мark
Мark
https://linkode.org/#obK40mcKQnCrEGcDKKYob7
Charly
Мark
Wow, thank you, I really spent all day for it😅
Мark
Ok, thanks
Ali
Hello
I searched about django sign-up with email and read an article in medium.
But it was old and there are something(for example six module in django utils) there aren't now in django.
I could fix it by install six library dut I want to know is this a sure way? Isn't it bad or unsafe?
Ing. Mario Tamayo
Hello, can anyone share a project with drf and payment integration, thanks
Doragonsureiyā
Lone wolf
Is there anyone who can help me with this assignment
I have done creating a website and uploading video
But how to extract subtitles from a video
Lone wolf
https://docs.google.com/document/u/0/d/1S0QMt9MGKhRq8EKEihwwDIxo1bvTcs81ONQ81eiyg9k/mobilebasic
Bharat
Anyone with fastAPI experience?
Doragonsureiyā
Anyone with fastAPI experience?
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
Charly
Anonymous
I have two list of dictionaries
In both dictionary agent name is common I want to merge both dictionary example 👇
dictnory1 = [{'agentusername': 'deepak_srivastava', 'total_calls': 3}, {'agentusername': 'Modi', 'total_calls': 5}, {'agent__username
': 'shubham', 'total_calls': 1}]
dictonary2 = [{'agent__username': 'Modi', 'total': 3, 'amount': 853.2}]
I want something like this.
expected_result = [{'agent__username': 'Modi', 'total': 3, 'amount': 853.2,'total_calls': 3}]
Please someone help .
Alex
Alex
I have two list of dictionaries
In both dictionary agent name is common I want to merge both dictionary example 👇
dictnory1 = [{'agentusername': 'deepak_srivastava', 'total_calls': 3}, {'agentusername': 'Modi', 'total_calls': 5}, {'agent__username
': 'shubham', 'total_calls': 1}]
dictonary2 = [{'agent__username': 'Modi', 'total': 3, 'amount': 853.2}]
I want something like this.
expected_result = [{'agent__username': 'Modi', 'total': 3, 'amount': 853.2,'total_calls': 3}]
Please someone help .
merge, on basis of what?
Anonymous
merge, on basis of what?
agent__username is common in both dictories i want result like this [{'agent__username': 'Modi', 'total': 3, 'amount': 853.2,'total_calls': 3}]
Anonymous
Sam
Hi All,
I need some help in Python.
Please let me know someone is working on Django framework.
Charly
Ali
Sam
Neo
Charly
Neo
Move to @pythonofftopic
Neo
hi
now google disable Less secure app access section and dont allow to enable that
and i receive SMTPAuthenticationError
how to solve this problem?
Alex
in google account settongs
how?
Less secure app access section is disable and google does not access to enable that
Hrutuja
Hello everyone, I want to read sensors data and showing their on and off functionality in UI using Django.Can any one have any idea about it.please help us
Alex
Sanchit
Hii everyone !!!
Can anyone tell me how can a single model be access by two different apps
demon
Sanchit
Can we do like this in Django..
If we want to have two types of users like teacher and student and we have to store data ...
Then I can create two apps of teacher and student in Django and a model of data ...then import the model in both the apps and use it
Is this feasible in Django ??
Alex
Sanchit
yeah
Can you tell me some link which I can refer for performing this ....
Alex
Sanchit
Ok thanks 👍👍
Glukhov
Hi everybody.
Why doesn't env load when running python3 manage.py migrate? I get the error:
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'172.18.0.1' (using password: NO)»)
But when I start the server, everything works correctly
MYSQL_HOST = os.environ.get('MYSQL_HOST', default="localhost")
MYSQL_PORT = os.environ.get('MYSQL_PORT', default=3306)
MYSQL_USER = os.environ.get('MYSQL_USER', default="root")
MYSQL_PASS = os.environ.get('MYSQL_PASS', default=None)
Shazam_
Do django developer needs to know DSA?
Doragonsureiyā
αмiʀ
German
how can i union
{'date': datetime.date(2022, 6, 2), 'full_name': 'Name Name Name', 'update_count': 1, 'create_count': None}
{'date': datetime.date(2022, 6, 3), 'full_name': 'Name Name Name', 'update_count': None, 'create_count': 2}
i need 1 record without none
so, my qs:
queryset = Question.history.values(
date=F("history_date__date"),
full_name=Concat(
"history_user__first_name", V(" "),
"history_user__last_name", V(" "),
"history_user__patronymic"
),
).annotate(
update_count=Case(
When(history_type="~", then=Count("id"))
),
create_count=Case(
When(history_type="+", then=Count("id"))
),
).order_by()
Sanchit
Anonymous
help please
Anonymous
8sMzi7i5yozWASIEY8yHX2
Er.Fa
Hi,
could you please read my understanding of middlewares and djago auth and let me know if I missing something?
according to tutorials middlewares are hook to requests and they can manipulate them, django sessionmiddleware and authentication middlewares are based on this concept too, they receive request and see how the user status is, and based on that observation they decide what do, logging in, force logout, etc.
Fan / Ac
Anonymous
Manny
{% if message %}
<div>{{ message }}</div>
{% endif %}
i used django.bontrib -> messages . i wrote this condition in one of my templates. i couldn't see the result on the template but i saw the result in administration page 😐 why ?
Мark
May be you don’t show it, try to use <p>{{ message }}</p>
Morteza
Manny
Manny
Morteza
No 🤔 is it necessary ?
Yes its kind a list of messages, you should loop through the messages
for message in messages ...
Manny