Anonymous
Pls Sher video link
Anonymous
John
guys how we create common media gallery for django admin
Means where our all the media file are stored or when ever we need it's to pick any one from their.
John
Hey guys I have a doubt
I'm trying to combine two query set with all the values present in sender and receiver but when trying it I'm getting issues like this
TypeError at /messageview/2/1/
'Message' object is not iterable
John
I wanna get all the values in sender and receiver how can I get that ??
Mirco
!paste
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
John
Sorry
John
John
Here I'm able to get all the values in the shell but not able to serialize it
John
I'm have given many = True, still the same but when I remove it doesn't show me an error but shows me only one value
GOPINATH
Any good resourse for pushing postman collection to github
Njain
Hello all i am stuck in a problem
Njain
Please help me
Njain
I am working on a project and i have to generate user credentials through CSV file so it is possible or npt ???
Njain
Any idea how to or any page so i understand the code
Sai
Creator
Please Suggest:
How to fetch any value from one functional view to another functional view?
S
If I send firebase notification to my django app now, can I notify that again after 10 minutes?
Mounted
Hello everyone! How to do
Infinite Spreadsheets?
John
Can anyone help me how to paginate the results
In here I'm not getting it
https://pastebin.com/Ac3ANsJn
John
Here I'm paginating a filtered query_set in Django
John
How can I paginate a filtered query set
John
???
Amar
How to create project whatsapp chat bot in Django
Amar
???
Root
Harish
Has anyone here tried Supabase + Django
Mirco
Doragonsureiyā
Has anyone here tried Supabase + Django
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
VISHNU
How can I paginate a filtered query set
Define class pagination :
Pagination_class=pagination
In
def get
serializer=self.get_serializer(variable,many=True)
page=self.paginate_queryset(serializer.data)
return self.get_paginated_response(page)
S
Yes use scheduling
Can you please elaborate. Are you talking about celery scheduled task?
Titus
Can one use django-allauth authentication with custom user
Root
VISHNU
In generic relation in object can I able to use name instead of number
Henry
I have a doubt with how use React with Django. What is the best way for work, create the views with webpack or npx create-react-app? I don't know as follow my project
Anonymous
Hi everyone, is there anyone who can advice how i can import a .dat file into my django app?
Sai
Root
Saila
Guys , how can I pass session values in methods as parameters from one test1.py(in view ) to other test2 .py(in model) in django ? I am using import requests module .
GOPINATH
¿
Hi ,
I have some categories in category model ,how can i get all categories in all pages of website ,I mean how can i create a view and all urls use that view with his main view??
Daşqın
Amar
How to create project whatsapp chat bot in Django????
Abdulaziz
<div class="gallery">
{% for media in claim.medias.all %}
{% if claim.medias == "image" %}
<a class="image_gallery" href="{{ media.file.url }}" data-lightbox="mygallery{{ claim.id }}">
<img src="{{ media.file.url }}" alt="">
</a>
{% elif claim.medias == "video" %}
<a class="image_gallery" href="{{ media.file.url }}" data-lightbox="mygallery{{ claim.id }}">
<video controls>
<source src="{% static "{{ media.file.url }}" %}" type="video/mp4">
</video>
</a>
{% endif %}
{% endfor %}
</div>
Abdulaziz
Daşqın
Daşqın
Abdulaziz
Daşqın
Mirco
/warn ot crossposted
Hello
For every category I have different form so how I need to display the form and how I need to check that particular form
Hello
Harish
How do you integrate a live stream video with Django?
Marcos
Marcos
sheikh
Ashutosh
Assignment Details
Imagine, as part of the Euro 2020 football tournament, you and your friends decided to have a contest in your group to find out who makes the most correct win predictions. Being the tech-savvy guy of the group, you are asked to collect the data, create the infrastructure to manage the pointing system and maintain the leaderboard – the Contest Management System.
1. Each participant will have to give the predicted result of each match, starting from the first group-stage match to the final, before the tournament starts
2. To collect the above data, you will create a google form, share the link across to your friends, and ask them to fill it before the first match of the tournament starts. How should the questions be asked is up to your discretion. Remember, less work for the users, more satisfied they will be. Since the questions are to be formulated by you, for practical purpose, you can mock the data as well.
3. The Google form data that is received from the participants should be downloaded as a csv file to your local system. This csv file has to be used to import data into the table using python code.
4. There are a total of 51 matches in Euro2020. The prediction for each match by each participant and the actual result of each match should be stored persistently.The fixtures can be found in the https://www.uefa.com/uefaeuro-2020/news/0254-0d41684d1216-06773df7faed-1000--euro-2020-all-the-fixtures/ link.
5. The pointing system consists of two measures:
1. Points earned each match – The points that are earned for each correct prediction.
Group Match – 1 point
Round of 16 – 2 points
Quarter-Finals – 3 points
Semi-Finals – 4 points
Finals – 5 points
2. Correct Prediction Count – The total number of correct predictions made at any given point in time.
The Total Point of a participant = Sum of Points earned for each match multiplied by Correct Prediction Count at that point in time.
6. If two or more participants have the same point, the better rank goes to the participant who has a higher value for Correct Prediction Count. Even after these criteria, if two or more participants have the same ranks, then the participant who submitted the predictions earliest will get the better rank. The timestamp of submission will be there as a default attribute in your google form
Ashutosh
Anybody help me with table schema for this
𝕯aniel
Sandeep
Anyone online here python programming person ?
Sandeep
Need help
Sandeep
what's your problem ?
Hello guys i want print the list of prime numbers in the pyramid pattern.here I don't assign the number of rows .when suppose count =1 I have to print the 1 st nunber from the list ,when count =2 it has to print next 2 numbers from the list like that it has to print the prime numbers 47
Ashutosh
Can django be used as backend in flutter or drf is the only way
Kali
Kali
where's the pattern ?
Sandeep
2
3. 5
7. 11. 13
17. 19. 23. 29
Sandeep
Kali
you want to print something like above right ?
Sandeep
Yup