Nerd88
How to call python script on the file upload on web app?
Rian
Hey guys
Rian
Anyone here have created a Dapp using Django and Web3.py?
Anonymous
Guys, There's A public service where everyone knows the credentials to login. But only one can use at a time. If someone else is trying to login, say something like "service is already using"
Anonymous
How can I have such a solution? Thanks!
Вячеслав
i use django. Now i check a specific field where is placed message or the name of any other field from the other model and replace it with the field help_text. How can i rewrite next code using CASE WHEN THEN with annotate? And is it possible? https://pastebin.com/XubgzQhJ
Anonymous
I am making a django project. It works perfectly in my local system. But I chose to serve the media files by uploading them in cloudinary. So I installed it by pip3 install django-cloudinary-storage and did the necessary for setting it up. But while uploading I am getting an 'NotImplementedError' error: this backend doesn't support absolute path. What's the solution. Anyone kindly help
M
Guys, There's A public service where everyone knows the credentials to login. But only one can use at a time. If someone else is trying to login, say something like "service is already using"
there are many solution on google however i could not implement. please post here if you have answer or the way. i am also looking for the same
Anonymous
Did anyone know how to watermark images by using AWS s3 bucket ? Please help me.
Manuel
I'm trying to do a search by an argument and this argument is passed via post but my doubt is what type of action could it be if I just want to get the result
Manuel
Get or post
Lone
How to render request.session to mail and send a mail
Anonymous
How to render request.session to mail and send a mail
read session's data, put this data in template for email, send email. profit
T I T T U
When I'm try to install pip install djongo It's occur Could not install package due to an OSERRoR :[winError2]The system can not find the file specified :c\\python39\Scripts\\sqlformat.exe
Si
hi guys
Si
which one is better php or django?
Zey
which one is better php or django?
Php is language and django is framework
Si
clients prefer php for backend
Zey
U can't compare them
Isaac
which one is better php or django?
Anyone would solve whatever problem you have
Si
how to convince them?
Si
U can't compare them
but they have the same jop
Some1🌱
By building products
Some1🌱
Taking into confidence.
Si
By building products
any suggestions?
William
Editing Name
Hello guys, how save using: test = MyModelTest.objects.create(name='Test') and return id of new data in 'test' variable?
bikrant
I'm Doing get_uset_model().objects.get(data) Im getting a error 'type object User has no attribute objects'
bikrant
Using the get_user_model().object works
bikrant
Objects is right keyword to use right?
Abhishek
Anyone can tell me how to fix this problem -django.db.utils.ProgrammingError: operator class "varchar_pattern_ops" does not accept data type integer
bikrant
Yup
Why it's showing error then?
Mirco
Why it's showing error then?
Do you have a custom user model ? Or something called User around the code ?
Mirco
Yes customer user model
Re-check https://testdriven.io/blog/django-custom-user-model/
Mirco
I think you missed custom manager inside your custom user model
Doragonsureiyā
Thanks I'll check
You're welcome! 😊
Anonymous
Hi , I want to show my clients a message when tehy got new messages! How can i do?
ms
I want to learn django
🅰️🅷🅼🅰️🅳
Please help if you had a question
Doragonsureiyā
I want to learn django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
ms
! djangotut
want to know its advantages before start learning i have a background of node js . is django a frame work with graet advantages ?
Mirco
want to know its advantages before start learning i have a background of node js . is django a frame work with graet advantages ?
It's python Community is awesome It's scalable It's easy, the learning curve is fast enough Although it has some years, every major release contains lot of improvements Etc etc
Mirco
tnx does it have distadvantages ?
It's not born async, so compared to your node js experience, it can appear you "slow" but full async is coming ( for now views and Middlewares are async )
W
Hi guys, I've a memory issue when I structure data like this: [{name: 'Europe', data: [{name: 'Germany',value: 767.1}, {name: "Cyprus", value: 7.2}]}, {name: 'Africa', data: [{name: "Senegal",value: 8.2}, {name: "Ghana", value: 14.1 }]}] The following code is the way I tried. The data is structured as requested but the final list (listsocios) is missing some values and repeating another ones. I guess it is memory issue. Whats your thoughs? Whats would be the more effecient way to struct? class GraphSociosProvinciasView(TemplateView): template_name = 'socios/socios_prov_graph.html' def get_context_data(self,*args, **kwargs): context = super(GraphSociosProvinciasView, self).get_context_data(*args,**kwargs) listsocios=[] listsocprov=[] #Por cada provincia guardo los socios for n in range(1,25): sociosp=Socios.objects.all().filter(provincia=n) TotalSocios=sociosp.count() listsocprov.clear() if TotalSocios!=0: for socp in sociosp: listsocprov.append({'name': socp.apellido,'value': socp.numero_socio},) nombre_provincia=socp.get_provincia_display() listsocios.append({'name':nombre_provincia,'data':listsocprov}) print(listsocios) context={ 'sociosprov': listsocios, } return context
Аброр
has someone ever had an experience in validating recaptcha token in the backend?
Ted
Can someone simplify for me how I can use ALLOWED USERS
ken
while running django on linux, and uploading media, I am getting permission denied (requires dynamically creating folders as date name), tried chmod 775 to www-data but not working, any suggestions fellas
‎𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
anybody have experience in integrating firebase for login? I need to use firebase for phonenumber to login with otp. any help would be highly appreciated.
djigit0s
Hi! how to perform case insensitive overlap search for an ArrayField? questions = Question.objects.filter(question__overlap=text)
Siddharth
Hi, Can anyone tell me what settings in django do i need to apply, To make it work with aws(amazon web services) auto-scalling + load-balancing on ec2? (I use django + nginx + gunicorn). I tried various methonds but nothing is working.
Avi
raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: admin
Avi
How to solve these error??
Avi
I am deploying my django app
Mirco
anybody?
!anyone
Doragonsureiyā
anybody?
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 😊
‎𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
Doragonsureiyā
thanks. let me try it
You're welcome! 😊
‎𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
why using firebase when Django has it's built-in one have a look at django-otp for otp stuff
django-otp is for 2FA right? but my use case is to send otp as sms to phonenumbers of users inorder to login instead of email and username.
‎𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
by using django-otp can i achieve it?
Karthick
I want create database and separate user id for that database in pgadmin
Neo
what is the better way to update field values suppose if i want to assign roles to a user i send data like this ['role_1', 'role4', 'role7'] and i want to set remaining roles as disabled. i need set the roles which are sent through request at a time and rest assigned previously have to unset.
Abhinav
hello guys, i have a question that, is it better to sort table data in django or to apply sorting in frontend, like javascript
Akash
How can export multiple table convert CSV file without using pandas please help me how can doing
Daniyal4Real
Is here anyone speaking Russian and watching HowdyHo?
Abhinav
You can use order_by() in Django views to change the order of the data.
yes thats just for one field In my table there are multiple fields wherein i want to apply sorting, how do i do that