victor
If you use *Wagtail* and would like to know how to create "branching" content moderation workflows, I wrote about it at https://importthis.tech/wagtail-branching-workflows. I also created an accompanying video demonstration at https://youtu.be/qx1LOqJkt9Y
tushar
ELECT customer_id , org_id , business_unit_id , campaign_id FROM messages where (case when length(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(phone_number,' ', ''),'-',''),'(', ''),')', How to convert this type of sql query into django orm
Martín
you always can do those replacements on the model once the query brings the data and you have it available in python to be modified
tushar
Any reference or code
Martín
but maybe you could use a filter()
Martín
it would be helpful if you provided the entire SQL query
Martín
so that we would know what that CASE ... WHEN is for
tushar
Actually this same query work in php
tushar
To get colum name and value But in python it's don't return colum name
Martín
I think you need to provide info
Zoha
Hi i have a problem with django channels and thats the error: TypeError:__call__()missing 1 required positional argument:'send' How can i fix this?
Martín
To get colum name and value But in python it's don't return colum name
what's the database? which version it is? are you making the query through python or python+django?
Martín
and the whole query would help
Devang_12
Hey guys, any idea how to make a ticketing system in Django ⁉️⁉️
Zoha
use pastebin to provide some code we can review
Im using that repo from github: https://github.com/mitchtabian/Codingwithmitch-Chat
Martín
but the error should say which file is giving the error, and the line where this is happening
Zoha
but the error should say which file is giving the error, and the line where this is happening
Every py file of channels library and same error but doesn't say which file of the project
Anonymous
Which serializer good model or hyperlink?
Pavel
Hi! How to solve mypy error birthday = models.DateField("Дата рождения", **consts.BLANK_NULL) consts.py BLANK_NULL: dict[str, bool] = {"blank": True, "null": True} "DateField" has incompatible type "**Dict[str, bool]"
Devang_12
Hey guys, any idea how to make a ticketing system in Django 🧠🧠
Akshay
Import "rest_framework" could not be resolved Pylance(reportMissingImports)
Akshay
In setings rest_framwrk i added
Akshay
It is also installed
Akshay
Can anyone help me
Devang_12
Yes
How do I go about it ⁉️❓
Kishor
Hey Do you have any recommendation about books or tutorials on channels?
~~~
How to create a webhook for telegram bot using django?
Boburbek
How to create a webhook for telegram bot using django?
1. the install ngrok 2. https://api.telegram.org/bot{bot token}?url={ngrok url}/webhook/ 3 chech webhook
~~~
Using django libraries
~:$
Without using ngrok...i need to create myown
I guess ngrok is jist for testing. You have to need a server address which is always up for listening.
Doragonsureiyā
Hey guys, any idea how to make a ticketing system in Django 🧠🧠
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. 🤷🏻‍♂️
Stephen
i had to learn it via experimenting
Ooh, did you upload the code on GitHub maybe I can look at the code and learn some things
Mahesh
Jwt error
Mahesh
Solution tellme
Anonymous
What is the error
Mahesh
Django rest framework video services jwt errors
Mahesh
jose.exceptions.JWSError: Not enough segments
Äli
Hey guys , I need to make notification to my front-end the notification is about the status of the order where stage it have been reach ( pending - accepted - delivered - canceled ) I'm working with drf , I need to notifiy client without http request, I've working now in Django channel but I get stucked , any help please💚!
Mahesh
This error give me solution
Jugurtha
Do you think using channel is so useful ?
Doragonsureiyā
Jugurtha
I read the documentation about channel in Django, i read it briefly, can u explain me the real use cases , where channel shines, a d what is exactly channels by giving my a real word examples if u don't mind, cause i only understand by analogy to real word,
Mahesh
jose.exceptions.JWSError: Not enough segments
WhiteKing007
<div class="form-floating"> <input type="password" class="form-control" id="floatingInput" placeholder="name@example.com"> <label for="floatingPassword">Email</label>
WhiteKing007
can anyone how to add django form model for post
Anonymous
Hi , How can i test my website on phones?
Doragonsureiyā
Hi , How can i test my website on phones?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Shilpy
jose.exceptions.JWSError: Not enough segments
You may not be passing a valid JWT. It consists of 3 segments separated by dots
Shilpy
And then send the message using websocket
Nurhonov
Hi. Is forms the only way to put data to db? Is there any other ways to do that?
Nurhonov
there are many ways
i want to put data through frontend. Could you tell me what to use?
James
cj
i want to put data through frontend. Could you tell me what to use?
from frontend 🤔 depends on the architecture you're using, you have: Django Forms, REST API, GraphQL, Web Sockets...
Khalid
Hi. Is forms the only way to put data to db? Is there any other ways to do that?
Just use POST method in frontend and in django views save() the POST data as simple as that. Ex at views.py index(req): If req.method == 'POST': #some action.. Then need to import the model Model_val = (method.POST['the html value where store data']) model_val.save() Return whatever response() Hope helps
Daniel
Somebody knows hiw to connect jasperserver with django???
Anonymous
Hi..I need to create a frontend task scheduler..where user can configure various scripts to be picked up and run on configured times like cronjob with restart persistence. I know of apsscheduler, danjgoQ, celery n what not but I need help with complete django app..does anyone know of open source code to reuse?
Shilpy
https://link.medium.com/m65gNVyjjkb
Natsu
Hi, I'm new to django. What's best way to create multiple user types? Like Student, Teacher, Administrator, Principal, etc?
user123
Showing 500 error on heroku while django email verification . i.e clicking on authentication token send to email after user registration.
user123
Unable to register the user
user123
Help?