Kali
Alina
Hi guys! I have some issue with $file /run/gunicorn.sock
It gives me - -bash: /run/gunicorn.sock: Permission denied
プラティク
Hey guys need one help
Alina
I tried to change permission of gunicorn.sock but it doesn't help
プラティク
What is best to develop frontend with django
Mo
hi everyone, when i want to save a matrix in database by installing django-matrix-field i got this error, what is the solution for this error: module 'django.db.models' has no attribute 'SubfieldBase' Thanks
Doragonsureiyā
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
Homework? Job/Quiz question?
you have to do it yourself, this group is to help you on specific issues you have on YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻♂️
Monday
✌️
AA
Hi, everyone. I need your help. I've created models and made them translated, but after adding new models and migrating them, I come across this error:
raise TypeError("Translatable model {} does not appear to inherit from TranslatableModel".format(shared_model))
TypeError: Translatable model <class 'fake.Vacancy'> does not appear to inherit from TranslatableModel
AA
AA
AA
Doragonsureiyā
?)
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work.
Have a nice day 😊
M***
Guyz. Iam planing to build a billing software. Do you have any suggestions
M***
In django for a commercial purpos
Devo
Hi all , in my request.POST there is field which is not of field of my model ,how to use non-model field in model serializer in create method?
Shakti
If anyone have knowledge about webrtc with Django project than let me know....!!!
Adhil latheef
Guys.....I need help for setting celery in my django project......If anyone willing to help me....Please message me..
Satya Anurag
Hello,
please help me resolve my error.
I am getting a server error (500) in my local system as well as in Heroku when debug is set to False. But it's working fine when it is True.
Thanks in advance
Mirco
Satya Anurag
i tried every possible method to solve it but didn't get snything.
Satya Anurag
i'm using gunicorn for wsgi
Ononiwu Maureen
https://ayalo-auth-api.herokuapp.com/swagger
See how my documentation with swagger looks like no place to post anything
Daşqın
𝕯aniel
Install all you requirements configure ur nginx and gunicorn it's not hard
𝕯aniel
Type on google django deploy to vps u can see more docs
𝕯aniel
Ramtin
Hey guys
I wanna buy MacBook Pro m1
I can only upgrade RAM to 16 or storage to 512
I’ll use it for Web and mobile development and easy machine learning tasks
Ramtin
Anonymous
Ramtin
Anonymous
Hmm
Michael the wolf 🐺
Ramtin
Hmm
So do you have any idea ?
Anonymous
Ramtin
I mean
16 gb of ram or 512gb storage
Ramtin
Thanks
∆$¶u
I'm unable to watch users details in admin.py.
I created forms in register.html and i defined it in views.py and saved but when user ID entering his details in web then still I'm unable to see details in admin panel(admin.py).
But why?
Owolabi
Hello guys please i need help integrating Alipay on my Django API
AA
Hi everyone. I need your help. Here is the code from my models, views and templates files https://dpaste.org/tMJC
I have images in models and want to output them through context manager in the views, but the images are not shown in browser. Can you help please?
Owolabi
Hi I need a Django developer with experience in DRF, Chat application and push notifications and One signal to complete some task. Kindly DM to with your price and questions, thanks
V
Hi, How can I scrape all users of Instgram via using Instagram API? Is there any way?
âshîsh
V
DRF
Hey! Can you please explain more, if possible?
k9
Hello guys I deployed my app in heroku and it displayed images for a while and can't display them anymore.. Is it a code problem? Any suggestions on how to go around it will be helpful
VBELLO TECH
Son
who a have django for api by willium vincent
Son
book
Anonymous
How to convert base64 encoded image to filefield in django rest framework
Python
Hi guys ,
I need some help,
I wanna use postman-api_collection_json in my django api code for get address of wallet, but I don't know how shoud I use?
Can you explain for me!?
Do I have to install especific packege? Or how I have to import api.json in my code???
VISHNU
How to make autocompletion field in admin panel which I have to use in custom form .autocompletefield["user_id",] it's not working because of custom form.
Rakesh
Hi friends, Can I connect database though front end side.. I want use the field like db name, user name password port etc on front end and when I click to connect button it should connect to the database
Rakesh
Can I creamy mat django model and related view where I can get input from front end and save these dB connection details to models in SQLite dB, Whenever I need I can get connection details and connect to the databases
Vladislav
who can tell how use waffle?
Sergey
How to write this query with Django orm?
select foo.* from foo
left join bar on bar.id = foo.id and bar.valid = true
left join bar bar2 on bar2.number == bar.number and bar2.id != bar.id
where bar2.id is null
Mahdi
Mahdi
As i know yes
Maxim
As i know yes
what exactly prevents the use of high-level tools?
Mahdi
Doragonsureiyā
Rule 1⃣: Speak English.
Anonymous
guys, how with the help of ORM it is possible to get data from the database at a certain interval?
for example, I need to get records with quantity in the range [4, 15]
Max
Daşqın
Raghav
Suggest a data structure for each of the following real life situations
i. A vehicle registration system. If we give registration number of a vehicle as input, owner name, registration date, vehicle type should be output.
ii. For vehicle type as input, details of all vehicles of that type should be output.
iii. If we give two dates as input, details of all vehicles registered between those dates should be output.
Raghav
anyone?
Doragonsureiyā
anyone?
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work.
Have a nice day 😊
Raghav
ok
Doragonsureiyā
Maxim
Mo
hi, For defining a field in a model with the same value and field name of another model, i wrote this and it got the error of: super().init(to, on_delete, from_fields=['self'], to_fields=[to_field], **kwargs)
TypeError: init() got multiple values for keyword argument 'to_fields'
models.ForeignKey(to=, to_fields='', related_name='',on_delete=models.SET_NULL, null=True) what is the correct way and code for this? thanks
Maxim
hi, For defining a field in a model with the same value and field name of another model, i wrote this and it got the error of: super().init(to, on_delete, from_fields=['self'], to_fields=[to_field], **kwargs)
TypeError: init() got multiple values for keyword argument 'to_fields'
models.ForeignKey(to=, to_fields='', related_name='',on_delete=models.SET_NULL, null=True) what is the correct way and code for this? thanks
use ```code``` in message or services from rule5