W
django-channels
Thanks for the quick reply. Is that a django library?
Mirco
W
Yup, officially supported by Django
Oh... thanks Mirco, u rock. Have to take a deep look on that.
W
Thanks bro
Doragonsureiyā
Thanks bro
You're welcome! 😊
Nurgazy
AttributeError: 'str' object has no attribute 'decode'
Anonymous
i want to add Firebase database with my django project
Anonymous
can someone please help
Doragonsureiyā
AttributeError: 'str' object has no attribute 'decode'
Lesson number one: Always read what the machine tells you
Nurgazy
Send the code
/auth/jwt/create in custom url
Anonymous
djnago model id must be number ? can ı change str ?
Anonymous
yess ? ı dont understand
🐼🖤
Mirco
djnago model id must be number ? can ı change str ?
You can use whatever you want but you need to set it as primary_key Otherwise Django will use the default one
NonValue-Returning
Anyone how to use pydbg to debugging a HTTP request?
Anonymous
guys ı need help ı cant add to my model this json ? how can ı add ?
Anonymous
price: { dalaman: { 1: "68", 2: "68", 3: "68", 4: "68", 5: "70", 6: "70", 7: "78", 8: "78", 9: "78", 10: "88", 11: "88", 12: "88", 13: "88", 14: "88", 15: "88", 16: "88", } }
Anonymous
Json.dumb
Ilya
Mirco
guys ı need help ı cant add to my model this json ? how can ı add ?
Parse the json and save your model instance with the parsed data
Doragonsureiyā
Anyone how to use pydbg to debugging a HTTP request?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
dump)
Json.dump(data)
Nurgazy
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-2: ordinal not in range(256)
Null Boy
how i can fix?
https://stackoverflow.com/questions/3942888/unicodeencodeerror-latin-1-codec-cant-encode-character
Nurgazy
i can't fix
Nurgazy
because i'm asking
Null Boy
i can't fix
https://stackoverflow.com/questions/3942888/unicodeencodeerror-latin-1-codec-cant-encode-character
Nurgazy
yes
Null Boy
Null Boy
I use django background process in my project . If i deploy my project on server how can i start process_task ?
Null Boy
use Celery... you're using it, right?
No . I use https://django-background-tasks.readthedocs.io/en/latest/
cj
No . I use https://django-background-tasks.readthedocs.io/en/latest/
well... it looks a bit old and some-kind abandoned 🤔, you'd better use django-celery
Akash
When we assign a model field as ForeignKey to another model. Are we mapping on primary key ?
Charly
ohh no
cj
seems you need to use a cronjob or similar tool to schedule that
Django Celery Beat is the perfect tool for that
Charly
just start that proces and it will be fine
Null Boy
well... it looks a bit old and some-kind abandoned 🤔, you'd better use django-celery
i want when django start or restart on my server os.system("python manage.py process_tasks") command run . can i add os.system("python manage.py process_tasks") to wsgi.py ?
cj
i want when django start or restart on my server os.system("python manage.py process_tasks") command run . can i add os.system("python manage.py process_tasks") to wsgi.py ?
first, don't use os.system to call external apps/executables/scripts, second, yes you can add custom commands to be used by ./manage.py customcommand 🤷🏻‍♂️
Charly
but I'd prefer to have it as a different process
Akash
Is celery the right choice here ? My tasks are: 1. I have a database table that needs to be updated once-daily on basis of a Api call. 2. On certain dates, I have to send mail to bunch of people, so I need to run a function everyday that finds to whom to send mail today and then shoot a mail.
Mirco
Do what ?
Leonardo
Hi everyone. What is the best PDF generation LIB in your opinion? principals functionality: PDF concatenation, pagination, image inclusion, pdf índex.
Anonymous
Hello everyone I have being trying to add a user to a django group using a signal.. (post save signal) but it can't remove the user from the previous group and add them to the new group.. Any body help
Anonymous
But when I try the code from the shell it works without any problem I don't get any error or message when I run the code
Aneesh
Oath2 or jwt which is better
Anonymous
Oath2 or jwt which is better
Please answer this question
Charly
Oath2 or jwt which is better
different techs, use it in different cases
Anonymous
different techs, use it in different cases
Example....... I am building an anti virus type software.... I use django as back-end..... What should I use ... Oauth2 and jwt
Anonymous
JWT
Anonymous
JWT
Thanks
Anonymous
But may I know why.😅
Enes
Hi. I have a survey app and if user answered 2 questions and close page, I want to show 3rd question and fill first 2 questions answer. How can i do this? Thanks
Enes
When user reopened my page i wanna show. Registered user
Nirupam
Hi guys, i have accidentally deleted migration files in dev server.how to get them back..is there any impact will happen in dev database ?? Please help
Nirupam
I was getting issue like django.db.utils.programingerror
Nirupam
So deleted few migrations manually
Nirupam
Error was model and db object name or type is ambiguous
Nirupam
I tried to run -- fake command
Nirupam
Now no migration is happening