Brandon
Эндейл
Hi,guys , how can i fix this error
OSError: [Errno 38] Function not implemented
[30/Jul/2022 07:35:28] "POST /student/studentsignup HTTP/1.1" 500 144120
Maxim
Bruce
hey anyone know how to host django website with tailwind css
EAgold
hi
how to control websocket connections from http views?
let's say i want to close some connection via http request
is it possible to make something like this:
def close_connection(request):
connection = WScontext.get_connection(connection_id)
connection.close()
(django channels)
Erkaboy
Hi guys.
How can I override method in serializers which converts data to Json
SJ
I need help with hosting, I want to host my Django project. please dm if you have a solution. 6$ is what heroku charge. Let me know if you can get it done somewhere else with ssl.
Tin
Tin
??
Tin
Sultan
hello , i have this error in graphql upload file "No file was submitted. Check the encoding type on the form."
IM~Exynos
Which is most used schedule task library? Most advanced
Vaibhav
Anonymous
IM~Exynos
Celery
Celery having some issues with my task 🥺🥺 anything advanced than that?
Vaibhav
Conditional elector of HRE
Hi. Why doesn't it work like that?
{% for lang_code, lang_name in languages %}
{% language lang_code %} <li><a href="{{ request.path }}">{{ lang_name }}</a></li>
{% endlanguage %} {% endfor %} </ul>
And, for example, it switching languages:
{% for lang_code, lang_name in languages %}
{% language lang_code %} <li><a href="{% url 'index' %}">{{ lang_name }}</a></li>
{% endlanguage %} {% endfor %} </ul>
Conditional elector of HRE
Paths return the same
Ulug'bek | Python Developer
HI guys.
STATUS = (
('active','Active'),
('arxiv','Arxiv'),
)
my api > 'color':'active'
I want it be > 'color':'Active' How I change key to value ?
Mirco
Alexander
Hi. A weird question: is there any way to make a queryset that is filtered with a condition like... like takewhile/dropwhile? (Assuming it is somehow ordered, of course). For example, which contains of the elements of the query, until some condition starts to happen.
() { :;}; echo Nickolas
() { :;}; echo Nickolas
How about overriding get_queryset() and checking for your conditionals
Alexander
I wonder if that can be specified somehow to stay on SQL layer of the queryset
() { :;}; echo Nickolas
Unless the orm you're using supports it idk if you can drag this to the SQL layer
Alexander
That was the whole hope that Django's ORM does support it 🙁
() { :;}; echo Nickolas
Perhaps you can do whatever you need to do in a celery task and keep the results stored somewhere and fetch when you need it? Unless you need it real time
() { :;}; echo Nickolas
That way you wouldn't block the django layer and keep it in a separate task
Alexander
My real case is that I am basically doing a weird pagination. (So this obviously must happen inside my django view/code).
And the syntax of this pagination is something like records(afterUid, number). Or records(beforeUid, number)
() { :;}; echo Nickolas
Alexander
It is very trivial if you evaluate the queryset, and use those itertools goodies directly; but... but my inner DBA begs me to keep that in SQL
Alexander
Alexander
Also I don't remember if the builtin pagination offers the “afterUid/number” pattern, rather than basic “limit/offset”.
() { :;}; echo Nickolas
So you're using graphene-django then? Sorry, my graphql knowledge is limited to tutorials
Alexander
There are some reasons why limit/offset is unacceptable in my case; limit number is not stable, so if the data is regularly updated, it will move.
() { :;}; echo Nickolas
Afraid i can't contribute more than I already have. Everything i know is built on my experience with DRF that has baked in pagination which never let me down
() { :;}; echo Nickolas
Good luck tho, do provide an update if you've figured it out.
Alexander
Thanks for brainstorming!
() { :;}; echo Nickolas
M
Hey guys i just deployed my api with heroku, but what i find is that my api's is failing when handling nested fields, but it works fine when i run them locally
M
https://postimg.cc/gallery/wtFZKpS , like this when i visit the order/pk/items it should give me 2 fields so that i can input the data, but its only giving me order_pk on the heroku app
Ulug'bek | Python Developer
Mirco
Thank you. Whare i write displey name? Is it function?
You can find it on Django doc
when you have choices , you can access to get_FOO_display() method to get the display name
where foo is your field name
It's a method of your model
In Django setializer you can use the source attribute to inject it
ShuvamTheBeast
Whenever i raise a PermissionDenied error it is printed in terminal, any way to hide it from there?
Iñaki
you can change a data of a modelform?
Unknown
Conditional elector of HRE
M̴A̴. ̴
is it good to use Django for backend and react for frontend ... Or using Django for backend and frontend?
Avina
Hey guys,
Is it possible to use django 3 and older versions syntaxes in the latest version of django?
'Cause I'm going to make a project with django 3 but the version 4 in installed on my machine
Koen de
EAgold
Shandilya
Is it possible to make full project in django frontend backend all database with MySQL?
Shandilya
Yes, but same would be in Django itself
G4st0n
wtf
Koen de
Eslam
Guys I use http How if someone entered the site redirect to https
Xeon
Is it possible to create a database in sqlite3 and later migrate to Postgresql
Xeon
Koen de
Xeon
Koen de
Xeon
Wow thanks
Dani
Dani
Xeon
Could using sqlite3 be the reason why am trying to upload my app to heroku and it's saying app error?
Dani