Anonymous
How we can make the fake request to an endpoint that has captcha? (for writing test)
Anonymous
mocks
more detail please
Charly
more detail please
google it, then you can sak specific details
М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?
Мark
ValueError: ModelForm has no model class specified. Although, I add Meta class
Doragonsureiyā
ValueError: ModelForm has no model class specified. Although, I add Meta class
To share code or error tracebacks, use a pasting service, like: - https://linkode.org - https://dpaste.org
Anonymous
Wow, How did this bot find out that the problem was not explained?
Charly
I did it on linkode
well share the link
Мark
https://linkode.org/#obK40mcKQnCrEGcDKKYob7
Charly
Мark
Wow, thank you, I really spent all day for it😅
Charly
Wow, thank you, I really spent all day for it😅
you have more typos there check very carrefully
М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
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
https://docs.google.com/document/u/0/d/1S0QMt9MGKhRq8EKEihwwDIxo1bvTcs81ONQ81eiyg9k/mobilebasic
it owuld be a shame if we contact the recrutier to tell you are cheating
Aks
https://docs.google.com/document/u/0/d/1S0QMt9MGKhRq8EKEihwwDIxo1bvTcs81ONQ81eiyg9k/mobilebasic
I would suggest not to work for this company, they're literally making you do part of their project in lieu of a job that they most probably won't offer you.
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 .
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}]
Alex
agent__username is common in both dictories i want result like this [{'agent__username': 'Modi', 'total': 3, 'amount': 853.2,'total_calls': 3}]
instead of retrieving entire objects, just retrieve agent__username, unpack both lists into a single list, and run filter for element count =>2, once the list is filtered use them as keys to retrieve data from the database.
Alex
Both querysets belong to Different models .
What's problem there? once you have common agent, you can query with either model.
Anonymous
What's problem there? once you have common agent, you can query with either model.
note sure how please help with codes : dictonary 1 = calllogobj.values('agent__username').annotate(total_calls=Count('agent')) dictonary2 =leadobject.values('agent__username').annotate(total=Count('tax_and_fee')).annotate(amount=Sum('tax_and_fee'))
Sam
Hi All, I need some help in Python. Please let me know someone is working on Django framework.
Charly
Hi All, I need some help in Python. Please let me know someone is working on Django framework.
This is a django group thousands of people here work with django
Sam
This is a django group thousands of people here work with django
Please let me know, if someone is working in India.
Charly
Please let me know, if someone is working in India.
Just ask a specific questions, another thousand of people work in indea
Sam
Just ask a specific questions, another thousand of people work in indea
I want to know what is process of developing and deployment in Django in a project. I am aware how to create the project but sure how project works in companies.
Neo
Move to @pythonofftopic
Sam
we write. we test. we deploy
What are the tools are used, How they are used?
 
hi now google disable Less secure app access section and dont allow to enable that and i receive SMTPAuthenticationError how to solve this problem?
 
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
Sanchit
Hii everyone !!! Can anyone tell me how can a single model be access by two different apps
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 ??
Sanchit
yeah
Can you tell me some link which I can refer for performing this ....
Alex
Can you tell me some link which I can refer for performing this ....
'just django' tutorials on YouTube will be good start
Sanchit
Ok thanks 👍👍
Fan / Ac
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 ??
why two apps for two types of user ?? if thats the only thing you need you can create two types of user by overriding django user model https://simpleisbetterthancomplex.com/tutorial/2018/01/18/how-to-implement-multiple-user-types-with-django.html https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
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?
αмiʀ⁦⁦⁦⁦
Do django developer needs to know DSA?
Every developer should know that
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()
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
8sMzi7i5yozWASIEY8yHX2
share link properly like xyzbin.com/8sMzi7i5yozWASIEY8yHX2
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>
Manny
Did you loop through it?
No 🤔 is it necessary ?
Morteza
No 🤔 is it necessary ?
Yes its kind a list of messages, you should loop through the messages for message in messages ...