Ahmed
I use hardware devices to transfer data to realtime firebase and I want to get this data in my website in real time. I mean that the data changes automatically, so how can I detect this change
Серж
Hey guys, i need advice from django experts:
1. we have a lot of reports in our django admin, which is simply a form and when user submits this form, we generate for user xls, but customer wants to see the data like usual django model list view for real database models.
And here are two problems:
a. sometimes reports have no relation to real database models cause it's some aggregated data, and I don't think django admin list view is suitable for such type of data....
b. depending on form submitted values, columns in xls may be different, there could absolutely different columns view even for one type of report and it's unpredictable, so I am not sure would be possible to define list_fields for the modeladmin object dynamically.....
Any thoughts?
Серж
Does that sound too stupid ?
Ruzan
Michael the wolf 🐺
Hi, I want to do form submit using javascript but I want to do it securely and want to access current user object in route. How to do it? In case of normal form submit I guess cookie token is used to decode user object , but how to achieve in case of ajax submit
Saddam
How to disable previous dates in calendar?
Alda
Ли
Guys, urgently need help, displays the following error, I don't understand why it doesn't work, please help
[error] 87619#87619: *27 connect() to unix:/run/gunicorn.sock failed (111: Connection refused) while connecting to upstream, client: 185.254.196.115, ser
ver: 54.165.115.167, request: "POST / HTTP/1.1", upstream: "http://unix:/run/gunicorn.sock:/", host: "54.165.115.167"
Krunal
How to protect django source code while deploying on client server.
Like c# users publish their project.
Anonymous
how can i have all get requests in one route
Charly
Amit
Hello everyone i got stucked in one task, in django two datetime filed ,opening datetime and closing datetime so how can i calculate the hours wise data calculate between two fileds .
Krunal
Dhanik K.
Serhat
Hello, I'm new to testing. I started writing tests for an API created with Django rest framework. As a result of a test I wrote in the Register section, I get an error like "" ValueError: Content-Type header is "text/html", not "application/json" "". I can't send data as application/json. Can anyone help with an idea on this?
Abu r
Can I use React Django combination to make an E commerce applications with separate dashboards with different permissions (like as Admin , Customer , Riviewer ).
Charly
Phill
Yes
That sounds like a mean yes
Abu r
Yes
Can I contact you in dm
Abu r
Can anyone help with steps to do it , should I create the dashboards as separate projects
Phill
Abu r
Phill
Not that its wrong to ask
Stephen
Hello django developers ... anyone with a tutorial link or book on Saas project?
Ali
Hi everyone, is there a way to convert django project to an application to run just by clicking on it?(instead of writing the runserver code all the time)
ﹺ ﹺ
How to use django async views in production??? Any help
Doragonsureiyā
Алекс
ﹺ ﹺ
Dont use django async, bad experience
Ah meaning I should move to Flask or Fast API...
Have been trying to incorporate Celery to my app that's already in production for improved UEX
Алекс
ﹺ ﹺ
ГуНиСе️
hi all!
How can I keep the order of objects in a ManyToManyField ? Anyone knows?
ГуНиСе️
I tried to define ordering by id on a "through" model. But doesn't seem working.
Jafar Salimi
Hello, how can I get the information from the model based on the list?
Алексей
Model name.objects.get(filtr)
V
Any one who have 1 ya 2 year of experience in django
Doragonsureiyā
Ivan
hey everyone!
I am having some "decoding" problem with django + sqlite: https://stackoverflow.com/a/71970606/4995866
does anyone have any idea how to fix that?
Denis
Denis
Unfortunately I work with PostgreSQL and also never used the methods, you showed.
Nurhonov
Ivan
Denis
Denis
No, the safer way is to do 2.2 , 3.0, 3.1 and 3.2
And nowadays you can use django-upgrade tool to update your syntax to be compatible with a target version e.g. 3.0
Ref -> https://adamj.eu/tech/2021/09/16/introducing-django-upgrade/
Ivan
You can try to use django-upgrade tool for it.
it didn't work, not sure If I am not using it properly ..
it seems that the problem is not on the app side .. it is like a "bug" where the sqlite driver cannot read the value from the sqlite database because it is not in a utf-8 format. currently I am using version 3.2.12
what I am trying to do is to wrap that function in a way that it would "ignore" or "replace" the problematic character
Denis
Denis
Search for more information about the library or package you are using
Denis
And pay attention to the Django version.
Ivan
thanks @I_Lan_Dir ! yep, I am already doing that .. I didn't find too much neither in the django issues
just python python and sqlite I found similar solutions .. but the problem is how to wrap this from the django side
Denis
Denis
you're welcome)
Eddy
Hello !
How can i set the Godview in a e-commerce website!!? To always track the customers!?
ﹺ ﹺ
Use django + celery
Celery v 2.5.6 has been giving me real messed-up errors. TypError '>=' not supported between instances of 'float' and 'str'.
I think there's something wrong with the package, particularly the asynchronous.py
ﹺ ﹺ
I've tried a couple of older versions nut the error keeps coming
Richie RH
Guys , I have small projects of website but still have error to find jquery ..
23/Apr/2022 01:19:51] "GET /gluonmain/myicon/greenandroid.png HTTP/1.1" 404 2347
[23/Apr/2022 01:19:51] "GET /gluonmain/'%%20static%20'home/contactform/contactform.js'%20% HTTP/1.1" 404 2468
Not Found: /gluonmain/myicon/freewebapplication.png
Not Found: /gluonmain/myicon/itsupportgreen.png
Not Found: /gluonmain/myicon/greendesktpapplication.png
Agung Permana M
guys, does anyone know what the problem cause ''MySQL is not recognized as an internal or external command,
operable program or batch file.'
although I was done installing python-MySQL-connector
Charly
Agung Permana M
ok mates, I have just installed Mysql on cmd , but still ''MySQL is not recognized as an internal or external command,
operable program or batch file.'
Arik
I had stored youtube url in database. How can i show it on templates.
lubaskinc0de
I would like to know how to select photos related to a post implicitly, there is a fk post in the photo models, so how to do something like Post.objects.all().select_related(post.images) in select_related??
lubaskinc0de
i found solution prefetch_related('liked','images')
lubaskinc0de
person
Hey guys , who to turn debug= false in Django ?
person
Dhanik K.
person
When I get runserver from my project , it's showing an error . Your debug = true
Charly
person
Which error?
It's showing Django page , and say you see this page because you're debug true
Charly
person
No bro , I want to turn debug false
Charly